Jonlin пре 6 година
родитељ
комит
6e7968b3bc
1 измењених фајлова са 1 додато и 1 уклоњено
  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{