|
@@ -809,7 +809,11 @@ class Mobile extends Backend
|
|
|
$this->success();
|
|
|
}
|
|
|
public function batch_activity_cancel($ids){
|
|
|
- $this->model->whereIn('id',$ids)->update([
|
|
|
+ $map=[];
|
|
|
+ if($this->admin('sub')){
|
|
|
+ $map['hold_chan']=$this->admin('id');
|
|
|
+ }
|
|
|
+ $this->model->whereIn('id',$ids)->where($map)->update([
|
|
|
'is_activity'=>0,
|
|
|
'activity_time'=>0,
|
|
|
'hold_chan' =>0,
|