Commit 0609f943 by zhujian

fix

parent 347c4224
...@@ -36,6 +36,7 @@ export default class WechatApi { ...@@ -36,6 +36,7 @@ export default class WechatApi {
url: params.url, url: params.url,
}).then((result2) => { }).then((result2) => {
const res2 = result2.result; const res2 = result2.result;
setTimeout(() => {
this.agentConfig({ this.agentConfig({
corpid: res2.corpid, // 必填,企业微信的corpid,必须与当前登录的企业一致 corpid: res2.corpid, // 必填,企业微信的corpid,必须与当前登录的企业一致
agentid: res2.agentid, // 必填,企业微信的应用id (e.g. 1000247) agentid: res2.agentid, // 必填,企业微信的应用id (e.g. 1000247)
...@@ -54,6 +55,8 @@ export default class WechatApi { ...@@ -54,6 +55,8 @@ export default class WechatApi {
reject(err); reject(err);
}, },
}); });
}, 500)
}); });
}) })
...@@ -150,7 +153,7 @@ export default class WechatApi { ...@@ -150,7 +153,7 @@ export default class WechatApi {
wx.ready(() => { wx.ready(() => {
wx.invoke('startLiving', { wx.invoke('startLiving', {
"livingId": id, "livingId": id,
}, function(res) { }, function (res) {
if (res.err_msg === "startLiving:ok") { if (res.err_msg === "startLiving:ok") {
resolve(true) resolve(true)
} else { } else {
...@@ -165,7 +168,7 @@ export default class WechatApi { ...@@ -165,7 +168,7 @@ export default class WechatApi {
wx.ready(() => { wx.ready(() => {
wx.invoke('replayLiving', { wx.invoke('replayLiving', {
"livingId": id, "livingId": id,
}, function(res) { }, function (res) {
if (res.err_msg === "replayLiving:ok") { if (res.err_msg === "replayLiving:ok") {
resolve(true) resolve(true)
} else { } else {
......
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