文档
测试

支付前预览

POST
index.php/api/order/get_total_by_id

请求参数

参数名
类型
描述
必填
token
string
token
必填
type
number
来自哪里,1=购物车,2=商品详细,3=秒杀详细
必填
id
string
id,多个使用逗号拼接
必填
num
number
数量,多个使用逗号拼接
必填
unique
string
商品规格,多个使用逗号拼接
必填
coupon_id
number
优惠券id
必填
use_coin
number
1=使用积分抵扣,0=否
必填
order_type
number
自提=2,配送=1
必填

说明 / 示例

"list": [//商品列表 { "id": "5",//id "goods_name": "思念 台湾手抓饼 葱香口味 900g 10片 早餐卷饼 烘焙 培根火腿伴侣 葱油饼", "original_img": "http://tgsq.lyxmh.cn/upload/goods/20210225/713ee055e5c28fa8444b29936e464783.jpg", "original_price": "26.80",//市场价 "ordinary_price": "22.00",//会员价 "price": "15.00",//秒杀价 "num": 2,//购买数量 } ], "goods_price": 30,//商品总价 "order_money": 30,//实付金额 "free_freight_order_money": 30,//小于该金额需支付运费 "coupon_status": 0,//优惠券状态,1=可用 "coupon_money": 0,//优惠券金额 "freight": 0,//运费 "discount": 0,//折扣 "coin_2_money": 1, "user_coin": 9,//用户拥有积分 "deduct_money_coin": 0,//可抵扣积分数量 "deduct_money": 0,//可抵扣金额 "use_coin": 1,//是否使用积分抵扣 "user_level_str": "普通会员",//会员身份