add 镇农科负责人-信息收集和促销任务 提交接口

This commit is contained in:
chenbo 2023-11-07 15:53:59 +08:00
parent afcb9f6c24
commit 3ba50e9ea9

View File

@ -652,7 +652,6 @@ class TaskController extends BaseApiController
$param = $this->request->param();
$task = Task::where(['id'=>$param['id']])->find();
$taskTemplate = TaskTemplate::where(['id'=>$task['template_id']])->find();
$extend = json_decode($taskTemplate['extend'], true);
$extend['purchase_sales_info'][] = $param['purchase_sales_info'];
$taskTemplate->save(['extend'=>json_encode($extend)]);
return $this->success('成功', []);