Commit 89b569c6 authored by 董加伟's avatar 董加伟

1

parent d2508e1e
Pipeline #48934 passed with stage
in 3 seconds
...@@ -51,6 +51,7 @@ class ResponseController extends Controller { ...@@ -51,6 +51,7 @@ class ResponseController extends Controller {
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 } }));
let user_sid = ctx.cookies.get('jianbing_customer_id', { signed: false }); let user_sid = ctx.cookies.get('jianbing_customer_id', { signed: false });
let auth_token = ctx.cookies.get('auth_token', { signed: false }); let auth_token = ctx.cookies.get('auth_token', { signed: false });
if (input_params.user_token) { if (input_params.user_token) {
...@@ -62,6 +63,7 @@ class ResponseController extends Controller { ...@@ -62,6 +63,7 @@ class ResponseController extends Controller {
} }
} }
// 判断user_sid 和 app_user_id // 判断user_sid 和 app_user_id
if (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 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 : {}; const ret_appuid = result.status === 200 ? result.data : {};
...@@ -143,9 +145,11 @@ class ResponseController extends Controller { ...@@ -143,9 +145,11 @@ class ResponseController extends Controller {
const value = node_user_center_login_ret[key]; const value = node_user_center_login_ret[key];
// const exist_value = ctx.cookies.get(key, { signed: false }); // const exist_value = ctx.cookies.get(key, { signed: false });
// if (!exist_value) { // if (!exist_value) {
ctx.logger.info(JSON.stringify({ key, value, phone }));
ctx.cookies.set(key, value, { httpOnly: false, signed: false, path: '/', overwrite: true }); ctx.cookies.set(key, value, { httpOnly: false, signed: false, path: '/', overwrite: true });
// } // }
} }
ctx.redirect(target_url2); ctx.redirect(target_url2);
return; return;
} }
......
...@@ -524,7 +524,6 @@ module.exports = { ...@@ -524,7 +524,6 @@ module.exports = {
return rtn; return rtn;
}, },
// aes加密 // aes加密
async cipherByAES(data) { async cipherByAES(data) {
const { ctx } = this; const { ctx } = this;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment