...
|
...
|
@@ -63,7 +63,7 @@ class Cart extends Api |
|
|
$post = $this->request->post();
|
|
|
// 对象转json字符串
|
|
|
if(!empty($post['goods_style']) && is_array($post['goods_style'])){
|
|
|
$post['body_info'] = json_encode($post['goods_style']);
|
|
|
$post['goods_style'] = json_encode($post['goods_style']);
|
|
|
}
|
|
|
if(!$cart_id = $this->model->add($this->user,$post)){
|
|
|
$this->error($this->model->getError() ?: '加入购物车失败');
|
...
|
...
|
|