更新细节
This commit is contained in:
parent
849c2335ce
commit
28b70f80f4
|
@ -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']);
|
||||||
|
|
Loading…
Reference in New Issue