作者 王智

xiugai

... ... @@ -150,8 +150,8 @@ class ShopCar extends Api
/**
* 购物车接口
* @ApiTitle (购物车列表)
* @ApiSummary (购物车列表)
* @ApiTitle (购物车列表-有更改)
* @ApiSummary (购物车列表-有更改)
* @ApiMethod (POST)
* @ApiRoute (/api/Shop_Car/ShopcarList)
* @ApiHeaders (name=token, type=string, required=true, description="请求的Token")
... ... @@ -172,7 +172,7 @@ class ShopCar extends Api
->where('a.user_id', $UserId)
->order('a.id desc')
->join('goods g', 'g.id=a.Goods_id')
->field('a.id,g.id as Goods_id,g.image,g.title,g.price,g.delete_price,a.num')
->field('a.id,g.id as Goods_id,g.image,g.title,g.price,g.delete_price,a.num,g.speci')
->select();
$List = [];
if (!empty($Array)) {
... ... @@ -184,6 +184,7 @@ class ShopCar extends Api
$List[$k]['price'] = $v['price'];
$List[$k]['delete_price'] = $v['delete_price'];
$List[$k]['num'] = $v['num'];
$List[$k]['speci'] = $v['speci'];
}
}
$this->success('成功', $List);
... ...
... ... @@ -50,6 +50,10 @@ class Update extends Api
* @ApiReturn ({
'code':'1',
'msg':'返回成功',
"data": {
"Nickname": "允安",
"Avatar": "https://thirdwx.qlogo.cn/mmopen/vi_32/PiajxSqBRaEKRz8aJsbiaEwSkCamJBVEx05Y9IHhic7qpd5AK7uQJv8fia6QPXnCBaTFpXxF0Epml7u8K1TybnSwVA/132"
}
})
*/
public function InviteHtml()
... ...