作者 王智

xiugai

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