Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wechat-common
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
wechat-common
Commits
5094761b
Commit
5094761b
authored
Apr 06, 2021
by
zhangleyuan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:调整接口
parent
e7fa4a9d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/modules/workWxAuthorize/index.jsx
+2
-2
No files found.
src/modules/workWxAuthorize/index.jsx
View file @
5094761b
...
...
@@ -22,7 +22,7 @@ class WorkWxAuthorize extends React.Component {
const
code
=
window
.
getParameterByName
(
'code'
);
const
ticket
=
window
.
getParameterByName
(
'ticket'
);
const
storeId
=
window
.
getParameterByName
(
'storeId'
);
Service
.
hades
(
"
/
anon/hades/wXWorkUserTicketLogin"
,
{
Service
.
hades
(
"anon/hades/wXWorkUserTicketLogin"
,
{
appTermEnum
:
'XIAOMAI_CLOUD_CLASS_PC_WEB_CUSTOMER'
,
code
,
ticket
,
...
...
@@ -43,7 +43,7 @@ class WorkWxAuthorize extends React.Component {
}
workWechatAuthorize
=
()
=>
{
const
params
=
{}
Service
.
hades
(
'
/
anon/hades/getCorpTrainSuiteId'
,
params
).
then
((
res
)
=>
{
Service
.
hades
(
'anon/hades/getCorpTrainSuiteId'
,
params
).
then
((
res
)
=>
{
let
path
=
window
.
location
.
href
;
const
htmlUrl
=
`https://open.weixin.qq.com/connect/oauth2/authorize?appid=
${
res
.
result
}
&redirect_uri=
${
encodeURIComponent
(
path
)}
&response_type=code&scope=snsapi_privateinfo&state=STATE#wechat_redirect`
window
.
location
.
href
=
htmlUrl
;
...
...
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