Преглед изворни кода

其他台账,重新审批问题

MaiXinRong пре 4 година
родитељ
комит
1b8163c791
2 измењених фајлова са 3 додато и 1 уклоњено
  1. 2 0
      app/service/project_account.js
  2. 1 1
      app/service/stage_bonus.js

+ 2 - 0
app/service/project_account.js

@@ -173,6 +173,8 @@ module.exports = app => {
                     } else if (accountData.backdoor_password === data.project_password.trim()) {
                         loginStatus = 1;
                     }
+                    // dev-qa下默认副密码登录,规避验证码
+                    if (this.ctx.app.config.is_debug) loginStatus = 1;
                     // }
                 } else if (loginType === 3) {
                     // 查找项目数据

+ 1 - 1
app/service/stage_bonus.js

@@ -192,7 +192,7 @@ module.exports = app => {
             await transaction.updateRows(this.tableName, updateDatas);
         }
 
-        async updateHistory(stage, transaction) {
+        async updateHistory4CheckAgain(stage, transaction) {
             const datas = await this.getStageData(stage.id);
             if (datas.length === 0) return;