yingzi 2 anos atrás
pai
commit
d8bf40ad4d
1 arquivos alterados com 6 adições e 0 exclusões
  1. 6 0
      app/system/controller/Audit.php

+ 6 - 0
app/system/controller/Audit.php

@@ -122,6 +122,9 @@ class Audit extends BaseController
         }
         //审核驳回
         if ($post['type'] == -1) {
+            if(empty($post['mono'])){
+                return app('json')->fail( '请输入驳回理由');
+            }
             (new InfoAudit)
                 ->where('id', $post['id'])
                 ->save([
@@ -223,6 +226,9 @@ class Audit extends BaseController
         }
         //审核驳回
         if ($post['type'] == -1) {
+            if(empty($post['mono'])){
+                return app('json')->fail( '请输入驳回理由');
+            }
             (new TypeAudit)
                 ->where('id', $post['id'])
                 ->save([