Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Z
zhichan
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
蒋勇
zhichan
Commits
95e775d6
Commit
95e775d6
authored
Oct 22, 2020
by
宋毅
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'center-channel' of gitlab.gongsibao.com:jiangyong/zhichan into center-channel
parents
7b8b2159
356dd084
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
8 deletions
+10
-8
center-channel/app/base/service/impl/utilsSve/utilsAuthSve.js
+10
-8
No files found.
center-channel/app/base/service/impl/utilsSve/utilsAuthSve.js
View file @
95e775d6
...
...
@@ -172,20 +172,22 @@ class UtilsAuthService extends AppServiceBase {
let
result
=
await
this
.
get360Token
();
let
token
=
result
.
access_token
;
//360验证接口
let
subData
=
"pin="
+
pin
+
"&token="
+
token
let
rtn
=
await
this
.
restClient
.
execGet
(
subData
,
settings
.
requestUrl360
());
if
(
!
rtn
||
!
rtn
.
stdout
)
{
return
system
.
getResult
(
null
,
"restPost data is empty"
);
}
let
checkRet
=
JSON
.
parse
(
rtn
.
stdout
);
console
.
log
(
checkRet
,
'checkRet--------------'
)
// let subData = "pin=" + pin + "&token=" + token;
// let url = settings.requestUrl360() + 'api/v1/VerifyPin';
// let rtn = await this.restClient.execGet(subData,url);
// if (!rtn || !rtn.stdout) {
// return system.getResult(null, "restGet data is empty");
// }
// let checkRet = JSON.parse(rtn.stdout);
// console.log(checkRet,'checkRet--------------');
//---渠道用户登录,有则返回userpin ,没有则注册用户并返回userpin
actionBody
.
channelUserId
=
pin
;
let
loginRt
=
await
this
.
getLoginByUserName
(
pobj
,
actionBody
);
if
(
loginRt
.
status
!=
0
&&
loginRt
.
status
!=
2060
)
{
return
loginRt
;
}
opResult
.
data
=
{
userpin
:
pobj
.
actionBody
.
userpin
}
opResult
.
data
=
{
userpin
:
pobj
.
actionBody
.
userpin
}
if
(
loginRt
.
status
==
2060
)
{
opResult
.
msg
=
loginRt
.
msg
;
opResult
.
data
.
userpin
=
loginRt
.
data
.
userpin
;
...
...
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