更新细节

This commit is contained in:
yaooo 2023-11-14 18:22:45 +08:00
parent 849c2335ce
commit 28b70f80f4
1 changed files with 2 additions and 2 deletions

View File

@ -29,7 +29,7 @@
public function edit(): Json public function edit(): Json
{ {
$params=$this->request->post(['id', 'status']); $params=$this->request->post();
$result = curl_post(env('project.worker_domain').'/middleapi/task_scheduling/edit',$params,$this->reqHeader); $result = curl_post(env('project.worker_domain').'/middleapi/task_scheduling/edit',$params,$this->reqHeader);
if($result['code'] == 0){ if($result['code'] == 0){
return $this->fail($result['msg']); return $this->fail($result['msg']);
@ -89,7 +89,7 @@
public function deleteTemplate(): Json public function deleteTemplate(): Json
{ {
$params=$this->request->post(); $params=$this->request->post(['id']);
$result = curl_post(env('project.worker_domain').'/middleapi/task_template/delete',$params,$this->reqHeader); $result = curl_post(env('project.worker_domain').'/middleapi/task_template/delete',$params,$this->reqHeader);
if($result['code'] == 0){ if($result['code'] == 0){
return $this->fail($result['msg']); return $this->fail($result['msg']);