Browse Source

审核bug

15168162575 2 years ago
parent
commit
969cbbf3db
1 changed files with 5 additions and 0 deletions
  1. 5 0
      application/admin/controller/Res.php

+ 5 - 0
application/admin/controller/Res.php

@@ -107,6 +107,11 @@ class Res extends Backend
             $this->error(__('Parameter %s can not be empty', ''));
         }
         $params = $this->preExcludeFields($params);
+        if ($params['judge'] == '合格'){
+            $params['judge'] = '1';
+        }else{
+            $params['judge'] = '0';
+        }
         $result = false;
         Db::startTrans();
         try {