查看: 6397|回复: 8

考勤模块建立工作场所报错

升级   1.93%

27

主题

47

回帖

193

积分

注册会员

Rank: 2

积分
193
发表于 2020-3-24 11:57:24 | 显示全部楼层 |阅读模式
无法打开地图,按钮无响应,f12显示里面的报错如下图,是什么原因恩?

2index.html:1 Unchecked runtime.lastError: The message port closed before a response was received.
我服务器ip:20030/x_program_center/jaxrs/distribute/assemble/source/oao.tjlgj.com?v=2.3.1-f6255ae&k85cuixd:1 Failed to load resource: net::ERR_CERT_COMMON_NAME_INVALID
mootools-1.6.0_all.js:6423 [Deprecation] Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience. For more help, check https://xhr.spec.whatwg.org/.
send @ mootools-1.6.0_all.js:6423
VM417:1 websocket is open, You can receive system messages
o2.js?v=-a0d8055:375 Mixed Content: The page at 'https://我的域名/x_desktop/index.html' was loaded over HTTPS, but requested an insecure script 'http://api.map.baidu.com/getscript?v=2.0&ak=Qac4WmBvHXiC87z3HjtRrbotCE3sC9Zg&services=&t=20161219171637'. This request has been blocked; the content must be served over HTTPS.
_loadSingle @ o2.js?v=-a0d8055:375
o2.js?v=-a0d8055:396 Error: load javascript module: http://api.map.baidu.com/getscript?v=2.0&ak=Qac4WmBvHXiC87z3HjtRrbotCE3sC9Zg&services=&t=20161219171637
BDMarkerTool.js:466 Uncaught ReferenceError: BMap is not defined
    at BDMarkerTool.js:466
    at BDMarkerTool.js:495
BDMarkerTool.js:304 Uncaught TypeError: Cannot read property '8' of undefined
    at new BMapLib.MarkerTool (BDMarkerTool.js:304)
    at Object.createMarker (<anonymous>:1:6841)
    at Object.wrapper.extend.$owner (mootools-1.6.0_all.js:1380)
    at Object.createDocument (<anonymous>:1:2924)
    at Object.wrapper.extend.$owner (mootools-1.6.0_all.js:1380)
    at HTMLDivElement.click (<anonymous>:1:1889)
    at HTMLDivElement.defn (mootools-1.6.0_all.js:4585)
VM467:1 Uncaught ReferenceError: BMap is not defined
    at Object.createMap (<anonymous>:1:4423)
    at Object.wrapper.extend.$owner [as createMap] (mootools-1.6.0_all.js:1380)
    at Object.loadMap (<anonymous>:1:4108)
    at Object.wrapper.extend.$owner [as loadMap] (mootools-1.6.0_all.js:1380)
4BDMarkerTool.js:304 Uncaught TypeError: Cannot read property '8' of undefined
    at new BMapLib.MarkerTool (BDMarkerTool.js:304)
    at Object.createMarker (<anonymous>:1:6841)
    at Object.wrapper.extend.$owner (mootools-1.6.0_all.js:1380)
    at Object.createDocument (<anonymous>:1:2924)
    at Object.wrapper.extend.$owner (mootools-1.6.0_all.js:1380)
    at HTMLDivElement.click (<anonymous>:1:1889)
    at HTMLDivElement.defn (mootools-1.6.0_all.js:4585)
红色文字是我后修改的
回复

使用道具 举报

升级   0.87%

13

主题

23

回帖

87

积分

注册会员

Rank: 2

积分
87
发表于 2020-4-12 17:24:35 | 显示全部楼层
请问考勤管理需要打卡机配合使用吗?
另外新建工作场所是什么意思?比如公司在上海,我在北京办公,就在地图上标记北京的地址?可否解释下使用原理
回复

使用道具 举报

升级   100%

139

主题

1万

回帖

4万

积分

超级版主

Rank: 8Rank: 8

积分
41458
发表于 2020-3-26 09:56:38 | 显示全部楼层
好的。https,小小管理员会将问题反馈到技术部门,让技术部门定位文档,并处理问题。
感谢您的反馈
回复

使用道具 举报

升级   100%

139

主题

1万

回帖

4万

积分

超级版主

Rank: 8Rank: 8

积分
41458
发表于 2020-3-25 10:37:55 | 显示全部楼层
你好:
小小管理员这边测试都是好的。由于无法重现,请检查一下是否浏览器屏蔽了一些插件。
回复

使用道具 举报

升级   1.93%

27

主题

47

回帖

193

积分

注册会员

Rank: 2

积分
193
发表于 2020-4-12 20:42:19 | 显示全部楼层
不用考勤机,安装手机APP,新建工作场所就是你所理解的,但是目前我看没有修复这个问题,还需要按着4楼我的那个方法解决
回复

使用道具 举报

升级   1.93%

27

主题

47

回帖

193

积分

注册会员

Rank: 2

积分
193
发表于 2020-3-24 13:03:31 | 显示全部楼层
http://api.map.baidu.com/getscript?这个在哪里可以设置成https的?
回复

使用道具 举报

升级   1.93%

27

主题

47

回帖

193

积分

注册会员

Rank: 2

积分
193
发表于 2020-3-24 20:00:22 | 显示全部楼层
表现出来就是,百度地图无法显示,就是因为那个地图api是http开头的,这个在哪里可以配置修改
回复

使用道具 举报

升级   1.93%

27

主题

47

回帖

193

积分

注册会员

Rank: 2

积分
193
发表于 2020-3-25 11:41:50 | 显示全部楼层
问题解决了,修改完头文件后,把服务重新启动一下才生效,这个https方式下百度地图不能转换为https应该算是个bug,还请管理员反馈一下。建议设置完htps后,百度地图等其他一些也跟着转换成https。
回复

使用道具 举报

升级   1.93%

27

主题

47

回帖

193

积分

注册会员

Rank: 2

积分
193
发表于 2020-3-25 11:33:07 | 显示全部楼层
您好,您的测试网站是https么?只有https方式才会有着问题,因为https模式下里面有http访问方式就会禁止,我尝试在\servers\webServer\x_desktop目录里的index.html的head头里加入:<meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests">,这样强制转换,能打开地图了,但是无法定位。网页f12调试里面报错如下
Uncaught TypeError: Cannot read property 'clearOverlays' of undefined
    at Object.destroy (<anonymous>:1:706)
    at Object.wrapper.extend.$owner (mootools-1.6.0_all.js:1380)
    at Object.clearContent (<anonymous>:1:2559)
    at Object.wrapper.extend.$owner (mootools-1.6.0_all.js:1380)
    at Object.<anonymous> (<anonymous>:1:8792)
    at Object._runCallback [as runCallback] (o2.js?v=-a0d8055:199)
    at _requireJs (o2.core.js:60)
    at _requireAppSingle (o2.core.js:168)
    at Object._requireApp [as requireApp] (o2.core.js:185)
    at Object.o2.xDesktop.requireApp (<anonymous>:1:91)
api0.map.bdimg.com/images/openhand.cur:1 Failed to load resource: the server responded with a status of 499 (Request has been forbidden by antivirus)
api0.map.bdimg.com/getmodules?v=2.0&t=20140707&mod=map_3dfppv,scommon_41feyh,mapclick_2gzfaj,oppc_desrwu,newvectordrawlib_qmni4u,style_hfbhis,tile_ehg05s,navictrl_s1owfk,control_ydgkiq,autocomplete_3xgzrz,citylistcontrol_t35bss,canvablepath_5134ed,common_2dd0c5,symbol_hqzn5e,marker_sezw30:1 Failed to load resource: the server responded with a status of 499 (Request has been forbidden by antivirus)
其实这个错误很简单处理,就是把百度地图的部分改成https的,按理来说,我在配置文件里设置了https方式,那么百度地图那边也应该自动转换为https的,但是咱们程序没有这么设置,版主能给反馈一下么?给一个解决方案?其实只要不是https网站就没这个问题。
回复

使用道具 举报

发表回复

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

联系客服 关注微信 下载APP 返回顶部 返回列表
viewthread