Jonlin 6 năm trước cách đây
mục cha
commit
6e7968b3bc
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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{