Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
X
xiaomai-cloud-class-web
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
xiaomai-cloud-class
xiaomai-cloud-class-web
Commits
0609f943
Commit
0609f943
authored
Aug 11, 2021
by
zhujian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
347c4224
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
src/common/js/wechatApi.js
+5
-2
No files found.
src/common/js/wechatApi.js
View file @
0609f943
...
@@ -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
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment