Jonlin 6 tahun lalu
induk
melakukan
6e7968b3bc
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      application/admin/controller/Messages.php

+ 1 - 1
application/admin/controller/Messages.php

@@ -197,7 +197,7 @@ class Messages extends Base
                 }
             }
 
-            if($type_id == -1){
+            if($type_id == -1 || $type_id == 0 || $type_id == ''){
                 return json(['code' => -2, 'data' => '', 'msg' => '请选择留言类别']);
             }
             try{