|
...
|
...
|
@@ -102,8 +102,8 @@ class Project5CateController extends BaseController |
|
|
|
$this->response('未知请求',Code::SYSTEM_ERROR);
|
|
|
|
}
|
|
|
|
$response = Http::withHeaders([])->asForm()->post($url, [
|
|
|
|
'name' => '测试分类',
|
|
|
|
'parent' => 0
|
|
|
|
'name' => $this->param['name'],
|
|
|
|
'parent' => $this->param['parent'] ?? 0,
|
|
|
|
]);
|
|
|
|
if ($response->successful()) {
|
|
|
|
$result = $response->json(); // 获取 JSON 响应体
|
...
|
...
|
|