1.提交缺失的东西
This commit is contained in:
@ -46,7 +46,7 @@ class CartController extends BaseApiController
|
||||
if ($res === true) {
|
||||
return $this->success('加入成功');
|
||||
}
|
||||
$this->fail($res);
|
||||
return $this->fail($res);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -40,11 +40,11 @@ class GoodsController extends BaseApiController
|
||||
*/
|
||||
public function getGoodsDetail(){
|
||||
$id = $this->request->get('id');
|
||||
$goods = GoodsLogic::getGoodsDetail($this->user_id,$id);
|
||||
$goods = GoodsLogic::getGoodsDetail($this->userId,$id);
|
||||
if($goods){
|
||||
$this->_success('获取成功',$goods);
|
||||
return $this->success('获取成功',$goods);
|
||||
}
|
||||
$this->_error('商品不存在',[],0,0);
|
||||
return $this->fail('商品不存在',[],0,0);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user