Commit 605c3df2 by wufan

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

parents 05ef2501 6ff79219
......@@ -2,7 +2,7 @@
* @Author: wufan
* @Date: 2021-05-11 10:21:37
* @LastEditors: wufan
* @LastEditTime: 2021-06-02 11:47:22
* @LastEditTime: 2021-06-02 12:00:21
* @Description: 企业微信api
* @@Copyrigh: © 2020 杭州杰竞科技有限公司 版权所有
*/
......@@ -15,7 +15,7 @@ export default class WechatApi {
return Service.Hades("anon/hades/getWxCorpJSAPISignature", {
storeId: User.getStoreId(),
url: params.url,
}).then((result) => {
}).then( await function(result) {
const res = result.result;
if (/MicroMessenger/i.test(navigator.userAgent)) {
this.config({
......@@ -36,11 +36,10 @@ export default class WechatApi {
if (params.isAgentConfig) {
return new Promise((resolve, reject) => {
wx.ready(() => {
Service.Hades("anon/hades/getWxWorkJSAPISignature", {
storeId: User.getStoreId(),
url: params.url,
}).then((result2) => {
}).then(await function(result2) {
const res2 = result2.result;
this.agentConfig({
corpid: res2.corpid, // 必填,企业微信的corpid,必须与当前登录的企业一致
......@@ -68,7 +67,6 @@ export default class WechatApi {
});
});
});
});
}
});
}
......
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