Commit 165778da authored by 李尚科's avatar 李尚科

device init fix

parent 727a2dd8
Pipeline #6137 passed with stage
in 6 seconds
......@@ -96,7 +96,7 @@ module.exports = () => {
device_login_id: deviceLoginId,
};
const result = await ctx.helper.send_request(ctx.app.config.NODE_URL + '/user_api/v1/user/auth', params, {
const result = await ctx.helper.send_request(ctx.app.config.NODE_URL + '/user/auth', params, {
method: 'POST',
});
// ctx.logger.info('appUserId: ' + appUserId);
......@@ -104,10 +104,10 @@ module.exports = () => {
ctx.logger.info('user_auth_params: ' + JSON.stringify(params));
ctx.logger.info('user_auth_result: ' + JSON.stringify(result));
console.log(result);
// if (result.status !== 201) {
// ctx.failed('无效用户');
// return;
// }
if (result.status !== 201) {
ctx.failed('无效用户');
return;
}
// const data = result.data.data;
let data = result.data.data;
......
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