正在显示
1 个修改的文件
包含
4 行增加
和
2 行删除
| @@ -210,11 +210,13 @@ class ProjectLogic extends BaseLogic | @@ -210,11 +210,13 @@ class ProjectLogic extends BaseLogic | ||
| 210 | if(count($project_arr) >= $serversInfo['ip_total']){ | 210 | if(count($project_arr) >= $serversInfo['ip_total']){ |
| 211 | $this->fail('请选择其他服务器,当前ip已满'); | 211 | $this->fail('请选择其他服务器,当前ip已满'); |
| 212 | } | 212 | } |
| 213 | + @file_put_contents(storage_path('logs/lyh_error.log'), var_export($project_arr, true) . PHP_EOL, FILE_APPEND); | ||
| 213 | if(!in_array($project_id,$project_arr) || empty($project_arr)){ | 214 | if(!in_array($project_id,$project_arr) || empty($project_arr)){ |
| 214 | array_push($project_arr,$project_id); | 215 | array_push($project_arr,$project_id); |
| 216 | + @file_put_contents(storage_path('logs/lyh_error.log'), var_export($project_arr, true) . PHP_EOL, FILE_APPEND); | ||
| 215 | $project_str = ','.implode(',',$project_arr).','; | 217 | $project_str = ','.implode(',',$project_arr).','; |
| 216 | - $serversIpModel->edit(['project_arr'=>$project_str,'total'=>count($project_arr)],['id'=>$servers_id]); | ||
| 217 | - $serversModel->where(['id'=>$info['servers_id']])->increment('being_number'); | 218 | +// $serversIpModel->edit(['project_arr'=>$project_str,'total'=>count($project_arr)],['id'=>$servers_id]); |
| 219 | +// $serversModel->where(['id'=>$info['servers_id']])->increment('being_number'); | ||
| 218 | } | 220 | } |
| 219 | return $this->success(); | 221 | return $this->success(); |
| 220 | } | 222 | } |
-
请 注册 或 登录 后发表评论