Commit fe094eb9 authored by Hsinli's avatar Hsinli

add

parent 6c514815
Pipeline #19283 passed with stage
in 7 seconds
......@@ -15,14 +15,15 @@ class CheckService extends Service {
isLogin: false,
hidePhone: ''
};
if (!ctx.appUserId || !ctx.deviceId || !ctx.deviceLoginId || !ctx.userId) {
if (!ctx.oldUserId || !ctx.userId) {
//如果没有登录就不做处理
return ret;
}
let userSid = isNaN(ctx.oldUserId) ? ctx.helper.decodeUserSid(ctx.oldUserId) : ctx.oldUserId;
let filter = {
attributes: ['passport'],
where: {
sid: ctx.oldUserId,
sid: userSid,
yys_cid: 10
}
}
......@@ -63,15 +64,15 @@ class CheckService extends Service {
async check() {
const { ctx } = this;
if (!ctx.appUserId || !ctx.oldUserId || !ctx.userId) {
if (!ctx.oldUserId || !ctx.userId) {
//如果没有登录就不做处理
ctx.failed('登录异常');
}
//获取用户手机号
let userSid = isNaN(ctx.oldUserId) ? ctx.helper.decodeUserSid(ctx.oldUserId) : ctx.oldUserId;
let filter = {
attributes: ['passport'],
where: {
sid: ctx.oldUserId,
sid: userSid,
yys_cid: 10
}
}
......
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