Jonlin 6 жил өмнө
parent
commit
6e7968b3bc

+ 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' => '请选择留言类别']);
                 return json(['code' => -2, 'data' => '', 'msg' => '请选择留言类别']);
             }
             }
             try{
             try{