|
|
@@ -498,6 +498,10 @@ class Beihuogl extends Start_Controller {
|
|
|
'update_time'=>$time,
|
|
|
];
|
|
|
}
|
|
|
+ if(empty($insert_arr)){
|
|
|
+ echo json_encode(['success'=>false,'msg'=>'可存储数据为空','error_list'=>$error_list]);
|
|
|
+ exit;
|
|
|
+ }
|
|
|
$r =$this->db->insert_batch('bhsq',$insert_arr);
|
|
|
if($r){
|
|
|
if(empty($error_list)){
|
|
|
@@ -511,7 +515,7 @@ class Beihuogl extends Start_Controller {
|
|
|
}
|
|
|
exit;
|
|
|
}else{
|
|
|
- echo json_encode(['success'=>true,'msg'=>'请求失败']);
|
|
|
+ echo json_encode(['success'=>false,'msg'=>'请求失败']);
|
|
|
exit;
|
|
|
}
|
|
|
}
|