提交 94227ef8 编写于 作者: U unknown

修复考勤在https下设置地图错误的问题

上级 e34a97ac
......@@ -170,7 +170,7 @@ MWF.xApplication.Attendance.AddressExplorer.BaiduMap = new Class({
//var apiPath = "http://api.map.baidu.com/api?v=2.0&ak=Qac4WmBvHXiC87z3HjtRrbotCE3sC9Zg";
var apiPath;
var accountkey = ak || "Qac4WmBvHXiC87z3HjtRrbotCE3sC9Zg";
if( window.location.protocol.toLowerCase() === "https" ){
if( window.location.protocol.toLowerCase() === "https:" ){
apiPath = "https://api.map.baidu.com/getscript?v=2.0&ak="+accountkey+"&services=&t=20161219171637";
}else{
apiPath = "http://api.map.baidu.com/getscript?v=2.0&ak="+accountkey+"&services=&t=20161219171637";
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册