|
|
@@ -205,7 +205,7 @@ class LoginController {
|
|
|
return response.json({error: 2,ssoId: userData.id});
|
|
|
}
|
|
|
|
|
|
- const userInfo = await userModel.findDataByAccount(account);
|
|
|
+ // const userInfo = await userModel.findDataByAccount(account);
|
|
|
// if (userInfo && userInfo.upgrade_list !== undefined) {
|
|
|
// for (const ul of userInfo.upgrade_list) {
|
|
|
// if (ul.isUpgrade === true) {
|
|
|
@@ -217,12 +217,12 @@ class LoginController {
|
|
|
// } else {
|
|
|
// res.msg = '当前未存在此用户';
|
|
|
// }
|
|
|
- if (userInfo) {
|
|
|
- res.result = true;
|
|
|
- res.data = userInfo.mobile;
|
|
|
- } else {
|
|
|
- res.msg = '当前未存在此用户';
|
|
|
- }
|
|
|
+ res.result = true;
|
|
|
+ // if (userInfo) {
|
|
|
+ // res.data = userInfo.mobile;
|
|
|
+ // } else {
|
|
|
+ res.data = userData.mobile;
|
|
|
+ // }
|
|
|
} catch (err) {
|
|
|
res.error = 1;
|
|
|
res.msg = err;
|