Commit 2f4463f1 by wufan

Merge branch 'feature/wufan/20210507/preview-address-list' into dev

parents bcc38700 b6a68018
......@@ -2,7 +2,7 @@
* @Author: wufan
* @Date: 2021-05-11 10:21:37
* @LastEditors: wufan
* @LastEditTime: 2021-06-02 15:27:35
* @LastEditTime: 2021-06-02 16:10:34
* @Description: 企业微信api
* @@Copyrigh: © 2020 杭州杰竞科技有限公司 版权所有
*/
......@@ -15,8 +15,7 @@ export default class WechatApi {
return Service.Hades("anon/hades/getWxCorpJSAPISignature", {
storeId: User.getStoreId(),
url: params.url,
}).then(
await function (result) {
}).then((result) => {
const res = result.result;
this.config({
beta: true, // 必须这么写,否则wx.invoke调用形式的jsapi会有问题
......@@ -39,8 +38,7 @@ export default class WechatApi {
Service.Hades("anon/hades/getWxWorkJSAPISignature", {
storeId: User.getStoreId(),
url: params.url,
}).then(
await function (result2) {
}).then((result2) => {
const res2 = result2.result;
this.agentConfig({
corpid: res2.corpid, // 必填,企业微信的corpid,必须与当前登录的企业一致
......@@ -66,13 +64,11 @@ export default class WechatApi {
reject(err);
},
});
}
);
});
});
});
}
}
);
});
}
static async config(config) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment