laiguoran 4 سال پیش
والد
کامیت
df64c01209
1فایلهای تغییر یافته به همراه1 افزوده شده و 2 حذف شده
  1. 1 2
      app/controller/stage_controller.js

+ 1 - 2
app/controller/stage_controller.js

@@ -1060,11 +1060,10 @@ module.exports = app => {
                     throw '台账修订中,请勿修改提交期数据';
                 }
 
-                console.log(ctx.query);
                 if (ctx.query.confirm !== undefined && ctx.query.confirm !== '确认设置终审审批') {
                     throw '请输入正确的文本信息';
                 }
-                if (!ctx.query.confirm) {
+                if (ctx.query.confirm === undefined || (!ctx.query.confirm && ctx.session.sessionUser.loginStatus === 1)) {
                     const code = ctx.query.code;
                     const pa = await ctx.service.projectAccount.getDataById(ctx.session.sessionUser.accountId);
                     const cacheKey = 'smsCode:' + ctx.session.sessionUser.accountId;