刘桂岩 3 years ago
parent
commit
56a53ebb54
1 changed files with 4 additions and 0 deletions
  1. 4 0
      application/inter/controller/Writereport.php

+ 4 - 0
application/inter/controller/Writereport.php

@@ -226,6 +226,10 @@ class Writereport extends Base
                 return json_encode(['status'=>'fail','code'=>'1029','msg'=>'没有操作权限']);
             }
             $param = $_REQUEST['param'];
+            if(empty($param['impression']) || empty($param['description']))
+            {
+                return json_encode(['status'=>'fail','code'=>'1039','msg'=>'报告内容不能为空!']);
+            }
             if(isset($_REQUEST['is_remote']) && $_REQUEST['is_remote'] == 1){
                 //远程
                 $status = DB::table('remote_application')->where('id',$param['rid'])->field('report_status')->find();