lgy 6 năm trước cách đây
mục cha
commit
e2fd5efea4
1 tập tin đã thay đổi với 3 bổ sung0 xóa
  1. 3 0
      application/inter/controller/Template.php

+ 3 - 0
application/inter/controller/Template.php

@@ -178,6 +178,9 @@ class Template extends Base
      **/
     public function add_template(){
         $param = $_REQUEST['param'];
+        if(empty($param['label'])){
+            return json_encode(['status'=>'fail','code'=>'3013','msg'=>'请输入模板名称']);
+        }
         $sessionid = $_REQUEST['sessionid'];
         $doctor = Cache::get($sessionid);
         $info = array();