问题描述
判断https 还是 http时 根本不起作用建议 全部改成文件:easemob.im-1.0.5.js 或 easemob.im-1.0.4.js 都有问题418行var prefix = options.https ? 'https' : 'http';改成var prefix = location.protocol == 'https:' ? 'https' : 'http';924行var https = options.https;var url = https ? 'https://a1.easemob.com' : 'http://a1.easemob.com';改成var url = location.protocol == 'https:' ? 'https://a1.easemob.com' : 'http://a1.easemob.com';1125、1124行(看版本决定)var prefix = options.https ? 'https' : 'http';改成var prefix = location.protocol == 'https:' ? 'https' : 'http';删掉 1127行this.https = options.https || false;1202、1199行(看版本决定)var loginUrl = this.https ? "https://a1.easemob.com" : "http://a1.easemob.com";改成var loginUrl = location.protocol == 'https:' ? "https://a1.easemob.com" : "http://a1.easemob.com";
解决方案
1186581516
解决方案二:
想的是让开发者主动打开开关,你这个变成自动检测了
解决方案三:
> forum.php?mod=redirect&goto=findpost&pid=1157&ptid=636想的是让开发者主动打开开关,你这个变成自动检测了楼上说的对,但还是自己检测比较好文件:index.htmlhttps : false,改成https : window.location.protocol == 'https:' ? true : false,
解决方案四:
第93行
解决方案五:
有开发者想自己控制的,所以当时做成开关了