|
@@ -79,7 +79,7 @@ class GoodsController extends webApp
|
|
|
$params = request()->post();
|
|
$params = request()->post();
|
|
|
$goodsId = request()->post('goods_id', 0);
|
|
$goodsId = request()->post('goods_id', 0);
|
|
|
if(!$result = GoodsService::make()->updateCart($this->userId, $goodsId, $params)){
|
|
if(!$result = GoodsService::make()->updateCart($this->userId, $goodsId, $params)){
|
|
|
- return showJson(1003, false);
|
|
|
|
|
|
|
+ return showJson(GoodsService::make()->getError(), false);
|
|
|
}else{
|
|
}else{
|
|
|
return showJson(1002, true, $result);
|
|
return showJson(1002, true, $result);
|
|
|
}
|
|
}
|