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
b6a68018
Commit
b6a68018
authored
Jun 02, 2021
by
wufan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:改为箭头函数
parent
bfc47982
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
9 deletions
+5
-9
src/common/js/wechatApi.js
+5
-9
No files found.
src/common/js/wechatApi.js
View file @
b6a68018
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* @Author: wufan
* @Author: wufan
* @Date: 2021-05-11 10:21:37
* @Date: 2021-05-11 10:21:37
* @LastEditors: wufan
* @LastEditors: wufan
* @LastEditTime: 2021-06-02 1
5:27:35
* @LastEditTime: 2021-06-02 1
6:10:34
* @Description: 企业微信api
* @Description: 企业微信api
* @@Copyrigh: © 2020 杭州杰竞科技有限公司 版权所有
* @@Copyrigh: © 2020 杭州杰竞科技有限公司 版权所有
*/
*/
...
@@ -15,8 +15,7 @@ export default class WechatApi {
...
@@ -15,8 +15,7 @@ export default class WechatApi {
return
Service
.
Hades
(
"anon/hades/getWxCorpJSAPISignature"
,
{
return
Service
.
Hades
(
"anon/hades/getWxCorpJSAPISignature"
,
{
storeId
:
User
.
getStoreId
(),
storeId
:
User
.
getStoreId
(),
url
:
params
.
url
,
url
:
params
.
url
,
}).
then
(
}).
then
((
result
)
=>
{
await
function
(
result
)
{
const
res
=
result
.
result
;
const
res
=
result
.
result
;
this
.
config
({
this
.
config
({
beta
:
true
,
// 必须这么写,否则wx.invoke调用形式的jsapi会有问题
beta
:
true
,
// 必须这么写,否则wx.invoke调用形式的jsapi会有问题
...
@@ -39,8 +38,7 @@ export default class WechatApi {
...
@@ -39,8 +38,7 @@ export default class WechatApi {
Service
.
Hades
(
"anon/hades/getWxWorkJSAPISignature"
,
{
Service
.
Hades
(
"anon/hades/getWxWorkJSAPISignature"
,
{
storeId
:
User
.
getStoreId
(),
storeId
:
User
.
getStoreId
(),
url
:
params
.
url
,
url
:
params
.
url
,
}).
then
(
}).
then
((
result2
)
=>
{
await
function
(
result2
)
{
const
res2
=
result2
.
result
;
const
res2
=
result2
.
result
;
this
.
agentConfig
({
this
.
agentConfig
({
corpid
:
res2
.
corpid
,
// 必填,企业微信的corpid,必须与当前登录的企业一致
corpid
:
res2
.
corpid
,
// 必填,企业微信的corpid,必须与当前登录的企业一致
...
@@ -66,13 +64,11 @@ export default class WechatApi {
...
@@ -66,13 +64,11 @@ export default class WechatApi {
reject
(
err
);
reject
(
err
);
},
},
});
});
}
});
);
});
});
});
});
}
}
}
});
);
}
}
static
async
config
(
config
)
{
static
async
config
(
config
)
{
...
...
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