xxxrrrdddd 2 years ago
parent
commit
9bc008cc8b
1 changed files with 5 additions and 1 deletions
  1. 5 1
      application/admin/controller/Mobile.php

+ 5 - 1
application/admin/controller/Mobile.php

@@ -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,