Browse Source

修改公共配置文件bug

lulihong 6 years ago
parent
commit
e4a8a97c80
1 changed files with 4 additions and 4 deletions
  1. 4 4
      js/weixin_common.js

+ 4 - 4
js/weixin_common.js

@ -1,5 +1,5 @@
//切换发布版本 true:正式版,连接生产环境;false:测试版,连接测试环境。
var publish_version = true;
//var publish_version = true;
var publish_version = false;
if(publish_version){
	//正式环境(城市i健康)
@ -21,7 +21,7 @@ if(publish_version){
    var hospitalId = "1025056";//预约挂号-上饶县人民医院的id
}else{
	//测试环境
	var server = "http://172.19.103.72:9096/csijk/"; 
	var server = "http://ehr.yihu.com/csijk/"; 
//	var server = "http://172.19.103.72:9096/wlyy/";
//	var server = "http://192.168.131.24:8082/";//仕杰
//	var server = "http://192.168.131.102:8081/";//伟达
@ -230,10 +230,10 @@ function checkUserAgent(){
            }
        }else{
            //校验登录的openid是否与缓存中存在的一致
            d.show();
           // d.show();
            sendPost('weixin/getOpenidByCode', {code: code}, 'json', 'post', openidFailed, function(res){
                if (res.status == 200) {
                    d.close();
                    //d.close();
                    localStorage.setItem("weixinCode", code);
                    var openid = res.openid,
                        agentOpenids = window.localStorage.getItem(OpenidAgent),