|
@@ -133,11 +133,16 @@ module.exports = app => {
|
|
accountData = await this.db.get(this.tableName, {
|
|
accountData = await this.db.get(this.tableName, {
|
|
account: data.account.trim(),
|
|
account: data.account.trim(),
|
|
project_id: projectData.id,
|
|
project_id: projectData.id,
|
|
- enable: 1,
|
|
|
|
|
|
+ // enable: 1,
|
|
});
|
|
});
|
|
|
|
|
|
if (accountData === null) {
|
|
if (accountData === null) {
|
|
- throw '不存在对应用户数据';
|
|
|
|
|
|
+ throw '用户名或密码错误';
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ if (accountData.enable !== 1) {
|
|
|
|
+ // throw '该账号已被停用,请联系销售人员';
|
|
|
|
+ return 2;
|
|
}
|
|
}
|
|
|
|
|
|
projectList = await this.getProjectInfoByAccount(data.account.trim());
|
|
projectList = await this.getProjectInfoByAccount(data.account.trim());
|