Browse Source

getWxConfig优化

xiuli.gao 2 years ago
parent
commit
f334d60a4b
3 changed files with 7 additions and 7 deletions
  1. 1 1
      qwh5/dist/index.html
  2. 1 1
      qwh5/dist/js/app.3c946c4a.js
  3. 5 5
      qwh5/src/utils/getWxConfig.ts

File diff suppressed because it is too large
+ 1 - 1
qwh5/dist/index.html


File diff suppressed because it is too large
+ 1 - 1
qwh5/dist/js/app.3c946c4a.js


+ 5 - 5
qwh5/src/utils/getWxConfig.ts

@@ -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) { // 企业