作者 lyh

gx

@@ -98,12 +98,12 @@ class ServersIpLogic extends BaseLogic @@ -98,12 +98,12 @@ class ServersIpLogic extends BaseLogic
98 * @time :2024/6/27 13:55 98 * @time :2024/6/27 13:55
99 */ 99 */
100 public function batchDelServersIp(){ 100 public function batchDelServersIp(){
101 - foreach ($this->param['ids'] as $v){  
102 - $info = $this->model->read(['id'=>$v['id']],['total']); 101 + foreach ($this->param['ids'] as $id){
  102 + $info = $this->model->read(['id'=>$id],['total']);
103 if($info['total'] != 0){ 103 if($info['total'] != 0){
104 continue; 104 continue;
105 } 105 }
106 - $this->model->edit(['status'=>1],['id'=>$v]); 106 + $this->model->edit(['status'=>1],['id'=>$id]);
107 } 107 }
108 return $this->success(); 108 return $this->success();
109 } 109 }