Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
5
51business
Project
Project
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
方斌
51business
Commits
19ad07b4
Commit
19ad07b4
authored
Aug 17, 2021
by
肖爱江
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
79f50636
Pipeline
#33502
passed with stage
in 12 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
1 deletion
+11
-1
response.js
app/controller/response.js
+11
-1
No files found.
app/controller/response.js
View file @
19ad07b4
...
@@ -34,12 +34,22 @@ class ResponseController extends Controller {
...
@@ -34,12 +34,22 @@ class ResponseController extends Controller {
const
device_id
=
ctx
.
cookies
.
get
(
'device_id'
,
{
signed
:
false
});
const
device_id
=
ctx
.
cookies
.
get
(
'device_id'
,
{
signed
:
false
});
const
device_login_id
=
ctx
.
cookies
.
get
(
'device_login_id'
,
{
signed
:
false
});
const
device_login_id
=
ctx
.
cookies
.
get
(
'device_login_id'
,
{
signed
:
false
});
ctx
.
logger
.
info
(
'target_user--'
+
JSON
.
stringify
({
target_cookies_user
:
{
token
,
user_id
,
app_user_id
,
device_id
,
device_login_id
}
}));
ctx
.
logger
.
info
(
'target_user--'
+
JSON
.
stringify
({
target_cookies_user
:
{
token
,
user_id
,
app_user_id
,
device_id
,
device_login_id
}
}));
const
user_sid
=
ctx
.
cookies
.
get
(
'jianbing_customer_id'
,
{
signed
:
false
});
// 判断user_sid 和 app_user_id
if
(
app_user_id
)
{
const
result
=
await
ctx
.
helper
.
send_request
(
this
.
config
.
USER_CENTER_API_URI
+
'/v1/appusers/'
+
app_user_id
,
{},
{
method
:
'GET'
,
dataType
:
'json'
});
const
ret_appuid
=
result
.
status
===
200
?
result
.
data
:
{};
if
(
ret_appuid
.
oid
===
user_sid
)
{
if
(
token
&&
user_id
&&
app_user_id
&&
device_id
&&
device_login_id
)
{
if
(
token
&&
user_id
&&
app_user_id
&&
device_id
&&
device_login_id
)
{
ctx
.
redirect
(
target_url2
);
ctx
.
redirect
(
target_url2
);
return
;
return
;
}
}
}
}
const
user_sid
=
ctx
.
cookies
.
get
(
'jianbing_customer_id'
,
{
signed
:
false
});
const
auth_token
=
ctx
.
cookies
.
get
(
'auth_token'
,
{
signed
:
false
});
const
auth_token
=
ctx
.
cookies
.
get
(
'auth_token'
,
{
signed
:
false
});
// ctx.logger.info('target_user--' + new Date().getTime() + JSON.stringify({ target_old_user: { auth_token, user_sid } }));
// ctx.logger.info('target_user--' + new Date().getTime() + JSON.stringify({ target_old_user: { auth_token, user_sid } }));
const
phone_info
=
await
ctx
.
service
.
user
.
get_phone_by_user_sid
({
user_sid
:
user_sid
,
token
:
auth_token
});
//获取用户手机号码
const
phone_info
=
await
ctx
.
service
.
user
.
get_phone_by_user_sid
({
user_sid
:
user_sid
,
token
:
auth_token
});
//获取用户手机号码
...
...
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