正在显示
1 个修改的文件
包含
3 行增加
和
3 行删除
| @@ -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 | } |
-
请 注册 或 登录 后发表评论