|
@@ -34,11 +34,11 @@ function getAuthInfo(cb?: any, redirect_url?: any) {
|
34
|
34
|
function initEvent(authInfo: any, cb) {
|
35
|
35
|
//在企业微信内部 并企业微信的版本号大约或等于3.0.24时,无须先调用wx.config,可直接wx.agentConfig.
|
36
|
36
|
//文档说明于 https://developer.work.weixin.qq.com/document/path/94313
|
37
|
|
- if (isWxwork() && isWxwork() != 'false' && compareVersion(isWxwork(), '3.0.24') != -1) {
|
38
|
|
- initYYConfig(authInfo, cb);//
|
39
|
|
- } else {
|
40
|
|
- initQYConfig(authInfo, cb);
|
41
|
|
- }
|
|
37
|
+ // if (isWxwork() && isWxwork() != 'false' && compareVersion(isWxwork(), '3.0.24') != -1) {
|
|
38
|
+ // initYYConfig(authInfo, cb);//
|
|
39
|
+ // } else {
|
|
40
|
+ initQYConfig(authInfo, cb);
|
|
41
|
+ // }
|
42
|
42
|
}
|
43
|
43
|
|
44
|
44
|
function initQYConfig(authInfo, cb) { // 企业
|