瀏覽代碼

审核bug

15168162575 2 年之前
父節點
當前提交
969cbbf3db
共有 1 個文件被更改,包括 5 次插入0 次删除
  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 {