Commit b397f051 authored by 李尚科's avatar 李尚科

device init fix

parent 25ef7e0d
...@@ -19,6 +19,8 @@ module.exports = () => { ...@@ -19,6 +19,8 @@ module.exports = () => {
break; break;
} }
ctx.logger.info(JSON.stringify({ url: ctx.request.url, params: input_params, cookies: ctx.header.cookie }));
const stack = ctx.app.router.stack; const stack = ctx.app.router.stack;
const current_path_list = ctx.request.url.split('?'); const current_path_list = ctx.request.url.split('?');
const current_path = current_path_list[0]; const current_path = current_path_list[0];
...@@ -110,9 +112,10 @@ module.exports = () => { ...@@ -110,9 +112,10 @@ module.exports = () => {
method: 'POST', method: 'POST',
}); });
// ctx.logger.info('appUserId: ' + appUserId); // ctx.logger.info('appUserId: ' + appUserId);
ctx.logger.info('request_header: ' + JSON.stringify(ctx.request.header)); // ctx.logger.info('request_header: ' + JSON.stringify(ctx.request.header));
ctx.logger.info('user_auth_params: ' + JSON.stringify(params)); // ctx.logger.info('user_auth_params: ' + JSON.stringify(params));
ctx.logger.info('user_auth_result: ' + JSON.stringify(result)); // ctx.logger.info('user_auth_result: ' + JSON.stringify(result));
ctx.logger.info(JSON.stringify({ url: ctx.app.config.NODE_URL + '/user/auth', request_header: ctx.request.header, user_auth_params: params, user_auth_result: result }));
console.log(result); console.log(result);
if (result.status !== 201) { if (result.status !== 201) {
ctx.failed('token 已失效'); ctx.failed('token 已失效');
......
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