This commit is contained in:
chenbo 2023-11-07 18:08:38 +08:00
parent 4d284266fa
commit 9d3ec12d9e

View File

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