tmp
This commit is contained in:
@@ -106,7 +106,6 @@ class HandlerUser {
|
||||
user.app[appId] = { role: ["user"], wxopenid: openid };
|
||||
}
|
||||
user.app[appId].wxopenid = openid;
|
||||
user.markModified('app');
|
||||
} else {
|
||||
return ResponseUtil.internalError(ctx, "用户不存在");
|
||||
}
|
||||
@@ -206,7 +205,7 @@ class HandlerUser {
|
||||
async userInfo(ctx) {
|
||||
try {
|
||||
const { token, userId } = ctx.request.body;
|
||||
if (!token || !userId) {
|
||||
if (!token && !userId) {
|
||||
return ResponseUtil.badRequest(ctx, "缺少 token 或 userId");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user