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