|
@@ -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();
|