This commit is contained in:
mkm 2023-10-07 16:36:13 +08:00
parent 2a6f917a89
commit 4b90e78cee

View File

@ -98,6 +98,7 @@ class Product extends BaseController
$product_type=0;//普通商品 $product_type=0;//普通商品
} }
$data['update_time'] = date('Y-m-d H:i:s'); $data['update_time'] = date('Y-m-d H:i:s');
$data['content']=$data['content']?json_encode($data['content']):[];
$this->repository->create($data,$product_type); $this->repository->create($data,$product_type);
return app('json')->success('添加成功'); return app('json')->success('添加成功');
} }