正在显示
1 个修改的文件
包含
6 行增加
和
2 行删除
| @@ -297,8 +297,12 @@ class Temp extends Command | @@ -297,8 +297,12 @@ class Temp extends Command | ||
| 297 | 'project_id' => $project_id, | 297 | 'project_id' => $project_id, |
| 298 | 'type' => 3 | 298 | 'type' => 3 |
| 299 | ]; | 299 | ]; |
| 300 | - $re = http_post($c_url, $c_params, [], true); | ||
| 301 | - $this->output($re['message'] ?? ''); | 300 | + $re = http_post($c_url, json_decode($c_params), [], true); |
| 301 | + if (isset($re['status']) && $re['status'] == 200) { | ||
| 302 | + $this->output($c_url . ' | 请求成功'); | ||
| 303 | + } else { | ||
| 304 | + $this->output($c_url . ' | ' . ($re['message'] ?? '未返回失败原因')); | ||
| 305 | + } | ||
| 302 | } | 306 | } |
| 303 | $this->output('项目id:' . $project_id . ',end'); | 307 | $this->output('项目id:' . $project_id . ',end'); |
| 304 | } | 308 | } |
-
请 注册 或 登录 后发表评论