...
|
...
|
@@ -137,11 +137,11 @@ class Order extends Api |
|
|
|
|
|
/**
|
|
|
* @ApiTitle (下单页面)
|
|
|
* @ApiSummary ([{cart_id:113 goods_id:22 goods_sku_id:106 number:2} {cart_id:114 goods_id:23 goods_sku_id:66 number:2}])
|
|
|
* @ApiSummary ([{id:113 goods_id:22 goods_sku_id:106 number:2} {id:114 goods_id:23 goods_sku_id:66 number:2}])
|
|
|
* @ApiMethod (POST)
|
|
|
* @ApiHeaders (name=token, type=string, required=true, description="请求的Token")
|
|
|
* @ApiParams (name="data_json", type="string", required=true, description="下单的商品json数据")
|
|
|
* @ApiParams (name="cart_id", type="integer", required=false, description="购物车id 此值不传 json数组注释用")
|
|
|
* @ApiParams (name="id", type="integer", required=false, description="购物车或我常买id 此值不传 json数组注释用")
|
|
|
* @ApiParams (name="goods_id", type="integer", required=false, description="商品id 此值不传 json数组注释用")
|
|
|
* @ApiParams (name="goods_sku_id", type="integer", required=false, description="规格id 此值不传 json数组注释用")
|
|
|
* @ApiParams (name="number", type="integer", required=false, description="购买数量 此值不传 json数组注释用")
|
...
|
...
|
@@ -151,7 +151,7 @@ class Order extends Api |
|
|
'data':
|
|
|
"list": [
|
|
|
{
|
|
|
"cart_id": 113, 购物车id
|
|
|
"id": 113, 购物车或我常买id
|
|
|
"goods_id": 22, 商品id
|
|
|
"goods_name": "Mate 20 华为 HUAWEI ", 商品名称
|
|
|
"spec_type": "20", 20多规格10单规格
|
...
|
...
|
@@ -162,7 +162,7 @@ class Order extends Api |
|
|
"image_text": "", 图片
|
|
|
},
|
|
|
{
|
|
|
"cart_id": 114,
|
|
|
"id": 114,
|
|
|
"goods_id": 23,
|
|
|
"goods_name": "MacBook Pro 13寸",
|
|
|
"spec_type": "20",
|
...
|
...
|
@@ -211,7 +211,7 @@ class Order extends Api |
|
|
$goods['sku_name'] = implode(' ',$sku_name); //规格名
|
|
|
}
|
|
|
$goods['number'] = $value['number'];
|
|
|
$goods['cart_id'] = $value['cart_id'];
|
|
|
$goods['id'] = $value['id'];
|
|
|
$goods_array[] = $goods;
|
|
|
$sum_price = bcadd($sum_price,bcmul($sku['goods_price'],$value['number'],2),2);
|
|
|
}
|
...
|
...
|
|