广告


首页上方
Headers
参数
正文
参数
响应输出

                                                            

                                                        
返回参数
名称 类型 描述
id integer 广告id
image string 图片地址
background string 颜色值
product_id integer 跳转商品id
status integer 是否显示
{"code":1,"msg":"","data":[]}

分类


全部分类数据
Headers
名称 类型 必选 描述
token string 用户登录的Token
cookie string 用户会话的cookie
参数
正文
Headers
参数
响应输出

                                                            

                                                        
返回参数
名称 类型 描述
id integer 分类id
name string 分类名称
pid integer 上级id
image string 图片
type string 类型
flag integer 标签/位置
weigh integer 排序
{"code":1,"msg":"","data":[]}
首页广告下面的分类
Headers
名称 类型 必选 描述
token string 用户登录的Token
cookie string 用户会话的cookie
参数
正文
Headers
参数
响应输出

                                                            

                                                        
返回参数
名称 类型 描述
id integer 分类id
name string 分类名称
pid integer 上级id
image string 图片
type string 类型
flag integer 标签/位置
weigh integer 排序
{"code":1,"msg":"","data":{}}

秒杀


首页秒杀信息
Headers
名称 类型 必选 描述
cookie string 用户会话的cookie
参数
正文
Headers
参数
响应输出

                                                            

                                                        
返回参数
名称 类型 描述
title string 当前秒杀活动标题
introdution string 当前秒杀活动简介
product.name string 商品图片
product.title string 商品标题
product.sales_price string 商品价钱
product.flash_product_id string 商品id
flash_id string 秒杀id
starttime_hour string 开始时间的所在小时
current bool 当前展示的秒杀活动是否正在进行中
countdown json 下一场秒杀活动的时间等信息
{"code":1,"msg":"","data":[]}
获取秒杀时间段
Headers
名称 类型 必选 描述
cookie string 用户会话的cookie
参数
正文
Headers
参数
响应输出

                                                            

                                                        
返回参数
名称 类型 描述
title string 当前秒杀活动标题
introdution string 当前秒杀活动简介
flash_id string 秒杀id
starttime_hour string 开始时间的所在小时
current bool 是否进行中
{"code":1,"msg":"","data":[]}
获取秒杀的产品列表
Headers
名称 类型 必选 描述
cookie string 用户会话的cookie
参数
名称 类型 必选 描述
flash_id string 秒杀活动id
page integer 第几页
pagesize integer 每页展示数量
正文
Headers
参数
响应输出

                                                            

                                                        
返回参数
名称 类型 描述
number integer 秒杀数量
introduction string 秒杀简介
sold integer 已售数量
product.title integer 商品名称
product.sales_price integer 销售价钱
product.market_price integer 市场价钱
product.image integer 商品图片
product.product_id integer 商品id
flash_product_id integer 秒杀商品id
{"code":1,"msg":"","data":[]}
获取秒杀产品数据
Headers
名称 类型 必选 描述
cookie string 用户会话的cookie
参数
名称 类型 必选 描述
flash_id string 秒杀活动id
id string 商品id
正文
Headers
参数
响应输出

                                                            

                                                        
返回参数
名称 类型 描述
category_id integer 分类id
title string 商品名称
image string 商品图片
images_text array 商品图片组
desc string 商品详情
sales integer 销量
sales_price string 销售价钱
market_price string 市场价钱
product_id string 商品id
stock integer 库存
look integer 观看量
use_spec integer 是否使用规格
server string 支持的服务
favorite integer 是否已收藏
evaluate_data json {count:'评论数据',avg:'好评平均值'}
coupon array 可用优惠券
cart_num integer 购物车数量
spec_list array 规格键值数据
spec_table_list array 规格值数据
flash.starttime string 秒杀开始时间
flash.endtime string 秒杀结束时间
flash.sold string 秒杀商品已售数量
flash.number string 提供秒杀商品数量
flash.text string 倒计时时态描述
flash.countdown string 倒计时
flash.countdown.day string
flash.countdown.hour string
flash.countdown.minute string
flash.countdown.second string
{"code":1,"msg":"","data":{}}
创建订单
Headers
名称 类型 必选 描述
cookie string 用户会话的cookie
token string 请求的Token
参数
名称 类型 必选 描述
flash_id string 秒杀活动id
id string 商品id
正文
Headers
参数
响应输出

                                                            

                                                        
返回参数
名称 类型 描述
product.title string 商品名称
product.image string 商品图片
product.sales integer 销量
product.sales_price string 销售价钱
product.market_price string 市场价钱
product.id string 商品id
product.stock integer 库存
product.spec integer 选中的规格
product.number integer 购买数量
address.id integer 地址id
address.name string 收货人名称
address.mobile string 收货人电话
address.address string 收货人地址
address.province_id integer 省份id
address.city_id integer 城市id
address.area_id integer 地区id
address.is_default integer 是否默认
address.province.name integer 省份
address.city.name integer 城市
address.area.name integer 地区
delivery.id integer 货运id
delivery.name string 货运名称
delivery.type string 收费类型
delivery.min integer 至少购买量
delivery.first integer 首重数量
delivery.first_fee string 首重价钱
delivery.additional integer 需重数量
delivery.additional_fee string 需重价钱
flash.sold integer 已秒数量
flash.sold integer 还剩数量
{"code":1,"msg":"","data":{}}
提交订单
Headers
名称 类型 必选 描述
cookie string 用户会话的cookie
token string 请求的Token
参数
名称 类型 必选 描述
flash_id string 秒杀活动id
product_id string 商品id
number string 商品数量
city_id integer 城市id
address_id string 收货地址id
delivery_id integer 运费模板id
spec string 规格
remark string 备注
正文
Headers
参数
响应输出

                                                            

                                                        
返回参数
名称 类型 描述
order_id string 订单编号
out_trade_no string 商户订单号(支付用)
{"code":1,"msg":"","data":{}}

短信


发送验证码
Headers
名称 类型 必选 描述
cookie string 用户会话的cookie
参数
名称 类型 必选 描述
mobile string 手机号
event string 动作:register=注册,resetpwd=重置密码
正文
Headers
参数
响应输出

                                                            

                                                        
返回参数
{"code":1,"msg":"发送成功","data":1}

购物车


购物车列表
Headers
名称 类型 必选 描述
token string 用户登录的Token
cookie string 用户会话的cookie
参数
正文
Headers
参数
响应输出

                                                            

                                                        
返回参数
名称 类型 描述
market_price string 市场价
sales_price string 销售价
stock integer 库存
sales integer 销量
image string 图片
title string 商品名称
choose integer 是否选中
isset integer 是否生效
cart_id integer 购物车id
spec string 选中的规格
number integer 数量
oldPrice string 旧价格
nowPrice string 现价格
product_id string 商品id
{"code":1,"msg":"","data":[]}
添加商品到购物车
Headers
名称 类型 必选 描述
token string 用户登录的Token
cookie string 用户会话的cookie
参数
名称 类型 必选 描述
id string 商品id
正文
Headers
参数
响应输出

                                                            

                                                        
返回参数
{"code":1,"msg":"添加成功","data":1}
删除购物车的商品支持多个删除用','号隔开购物车id
Headers
名称 类型 必选 描述
token string 用户登录的Token
cookie string 用户会话的cookie
参数
名称 类型 必选 描述
id string 购物车id,多个的话用','号隔开
正文
Headers
参数
响应输出

                                                            

                                                        
返回参数
{"code":1,"msg":"删除成功","data":1}
修改购物车数量
Headers
名称 类型 必选 描述
token string 请求的Token
参数
名称 类型 必选 描述
id integer 购物车id
number integer 数量
正文
Headers
参数
响应输出

                                                            

                                                        
返回参数
{"code":1,"msg":"更改成功","data":数量}
修改购物车选中状态
Headers
名称 类型 必选 描述
token string 请求的Token
参数
名称 类型 必选 描述
trueArr string 选中的购物车id,多个的话用','号隔开
falseArr string 不选的购物车id,多个的话用','号隔开
正文
Headers
参数
响应输出

                                                            

                                                        
返回参数
{"code":1,"msg":"","data":数量}

商品


产品详情
Headers
名称 类型 必选 描述
cookie string 用户会话的cookie
参数
名称 类型 必选 描述
id string 商品id
正文
Headers
参数
响应输出

                                                            

                                                        
返回参数
名称 类型 描述
category_id integer 分类id
title string 商品名称
image string 商品图片
images_text array 商品图片组
desc string 商品详情
sales integer 销量
sales_price string 销售价钱
market_price string 市场价钱
product_id string 商品id
stock integer 库存
look integer 观看量
use_spec integer 是否使用规格
server string 支持的服务
favorite integer 是否已收藏
evaluate_data json {count:'评论数据',avg:'好评平均值'}
coupon array 可用优惠券
cart_num integer 购物车数量
spec_list array 规格键值数据
spec_table_list array 规格值数据
{"code":1,"msg":"","data":{}}
产品列表
Headers
名称 类型 必选 描述
cookie string 用户会话的cookie
参数
名称 类型 必选 描述
sid integer 二级分类id
fid integer 一级分类id
page integer 页面
pagesize integer 每页数量
by string 排序字段
desc string 排序desc,asc
正文
Headers
参数
响应输出

                                                            

                                                        
返回参数
名称 类型 描述
title string 商品名称
image string 商品图片
sales integer 销量
sales_price string 销售价钱
product_id string 商品id
{"code":1,"msg":"","data":[]}
收藏/取消
Headers
名称 类型 必选 描述
cookie string 用户会话的cookie
token string 用户登录的Token
参数
名称 类型 必选 描述
id string 商品id
正文
Headers
参数
响应输出

                                                            

                                                        
返回参数
{"code":1,"msg":"","data":true}
收藏列表
Headers
名称 类型 必选 描述
token string 用户登录的Token
cookie string 用户会话的cookie
参数
名称 类型 必选 描述
page integer 页面
pagesize integer 每页数量
正文
Headers
参数
响应输出

                                                            

                                                        
返回参数
名称 类型 描述
id integer 收藏id
user_id integer 用户id
product.image string 商品图片
product.title string 商品名称
product.sales_price string 商品销售价钱
product.market_price string 商品市场价钱
product.product_id string 商品id
status integer 是否还有效
{"code":1,"msg":"","data":[]}
商品评论
Headers
名称 类型 必选 描述
cookie string 用户会话的cookie
参数
名称 类型 必选 描述
product_id string 商品id
page integer 页面
pagesize integer 每页数量
正文
Headers
参数
响应输出

                                                            

                                                        
返回参数
名称 类型 描述
id integer 评论id
username string 评论人名称
avatar string 评论人头像
product_id string 商品id
comment string 评论内容
rate integer 星星
order_id string 订单id
spec string 评论的规格
anonymous integer 是否匿名
toptime integer 是否置顶
createtime_text string 评论时间
{"code":1,"msg":"","data":[]}

订单


创建订单
Headers
名称 类型 必选 描述
cookie string 用户会话的cookie
token string 请求的Token
参数
名称 类型 必选 描述
id string 商品id
正文
Headers
参数
响应输出

                                                            

                                                        
返回参数
名称 类型 描述
order_id string 订单编号
out_trade_no string 商户订单号(支付用)
product.title string 商品名称
product.image string 商品图片
product.sales integer 销量
product.sales_price string 销售价钱
product.market_price string 市场价钱
product.id string 商品id
product.stock integer 库存
product.spec integer 选中的规格
product.number integer 购买数量
address.id integer 地址id
address.name string 收货人名称
address.mobile string 收货人电话
address.address string 收货人地址
address.province_id integer 省份id
address.city_id integer 城市id
address.area_id integer 地区id
address.is_default integer 是否默认
address.province.name integer 省份
address.city.name integer 城市
address.area.name integer 地区
coupon.id integer 优惠券id
coupon.title string 优惠券名称
coupon.least integer 至少购买金额
coupon.value integer 满减金额
coupon.starttime_text integer 开始使用时间
coupon.endtime_text integer 到期使用时间
delivery.id integer 货运id
delivery.name string 货运名称
delivery.type string 收费类型
delivery.min integer 至少购买量
delivery.first integer 首重数量
delivery.first_fee string 首重价钱
delivery.additional integer 需重数量
delivery.additional_fee string 需重价钱
{"code":1,"msg":"","data":{}}
提交订单
Headers
名称 类型 必选 描述
cookie string 用户会话的cookie
token string 请求的Token
参数
名称 类型 必选 描述
coupon_id string 优惠券id
product_id string 商品id,多个用法(product_id,product_id,product_id
number string 商品数量,多个用法(number,number,number
spec string 规格,多个用法(spec|spec2,spec|spec2,spec|spec2
city_id integer 城市id
address_id string 收货地址id
delivery_id integer 运费模板id
remark string 备注
正文
Headers
参数
响应输出

                                                            

                                                        
返回参数
名称 类型 描述
order_id string 订单编号
out_trade_no string 商户订单号(支付用)
{"code":1,"msg":"","data":{}}
获取运费模板
Headers
名称 类型 必选 描述
cookie string 用户会话的cookie
token string 请求的Token
参数
名称 类型 必选 描述
city_id integer 城市id
正文
Headers
参数
响应输出

                                                            

                                                        
返回参数
名称 类型 描述
id integer 模板id
name string 模板名称
type string 模板类型
min integer 至少购买量
first integer 首重数量
first_fee string 首重价钱
additional integer 需重数量
additional_fee string 需重价钱
{"code":1,"msg":"","data":[]}
获取订单列表信息
Headers
名称 类型 必选 描述
cookie string 用户会话的cookie
token string 请求的Token
参数
名称 类型 必选 描述
type integer 类型:0=全部,1=待付款,2=待发货,3=待收货,4=待评价,5=售后
page integer 第几页
pagesize integer 每页数量
正文
Headers
参数
响应输出

                                                            

                                                        
返回参数
名称 类型 描述
out_trade_no string 商户订单号
order_price string 订单原价钱
discount_price string 优惠多少钱
delivery_price string 运费多少钱
total_price string 订单实价
pay_type integer 支付类型
id string 下单ip
remark string 订单备注
have_paid integer 是否支付
have_delivered integer 是否发货
have_received integer 是否收货
have_commented integer 是否评论
refund_status integer 退款状态
products[].id string 商品id
products[].title string 商品名称
products[].image string 商品图片
products[].number integer 商品数量
products[].price string 商品价钱
products[].spec string 选中的规格
products[].order_product_id integer 订单商品id
products[].evaluate integer 是否已评价
products[].refund integer 是否已退款
extend.express_number integer 运单号
order_id string 订单id
state string 状态类型:0=全部,1=待付款,2=待发货,3=待收货,4=待评价,5=售后
refund_status_text string 已退款
{"code":1,"msg":"","data":[]}
未支付的订单才叫取消,已支付的叫退货
Headers
名称 类型 必选 描述
cookie string 用户会话的cookie
token string 请求的Token
参数
名称 类型 必选 描述
order_id string 订单id
正文
Headers
参数
响应输出

                                                            

                                                        
返回参数
{"code":1,"msg":"取消成功","data":true}
只能删除已取消或已退货的订单
Headers
名称 类型 必选 描述
cookie string 用户会话的cookie
token string 请求的Token
参数
名称 类型 必选 描述
order_id string 订单id
正文
Headers
参数
响应输出

                                                            

                                                        
返回参数
{"code":1,"msg":"删除成功","data":true}
确认收货
Headers
名称 类型 必选 描述
cookie string 用户会话的cookie
token string 请求的Token
参数
名称 类型 必选 描述
order_id string 订单id
正文
Headers
参数
响应输出

                                                            

                                                        
返回参数
{"code":1,"msg":"已确认收货","data":true}
发表评论/评价
Headers
名称 类型 必选 描述
cookie string 用户会话的cookie
token string 请求的Token
参数
名称 类型 必选 描述
order_id string 订单id
rate integer 分数/星星
anonymous integer 是否匿名
comment string 评价内容
product_id string 商品id
正文
Headers
参数
响应输出

                                                            

                                                        
返回参数
{"code":1,"msg":"感谢评价","data":true}
获取订单数量
Headers
名称 类型 必选 描述
cookie string 用户会话的cookie
token string 请求的Token
参数
正文
Headers
参数
响应输出

                                                            

                                                        
返回参数
名称 类型 描述
unpaid integer 未支付数量
undelivered integer 未发货数量
unreceived integer 未收货数量
uncomment integer 未评价数量
refund integer 正在售后的数量
{"code":1,"msg":"","data":{}}
订单详情细节
Headers
名称 类型 必选 描述
cookie string 用户会话的cookie
token string 请求的Token
参数
名称 类型 必选 描述
order_id string 订单id
正文
Headers
参数
响应输出

                                                            

                                                        
返回参数
名称 类型 描述
out_trade_no string 商户订单号
order_price string 订单原价钱
discount_price string 优惠多少钱
delivery_price string 运费多少钱
total_price string 订单实价
pay_type integer 支付类型
id string 下单ip
remark string 订单备注
have_paid integer 是否支付
have_delivered integer 是否发货
have_received integer 是否收货
have_commented integer 是否评论
refund_status integer 退款状态
products[].id string 商品id
products[].title string 商品名称
products[].image string 商品图片
products[].number integer 商品数量
products[].price string 商品价钱
products[].spec string 选中的规格
products[].order_product_id integer 订单商品id
products[].evaluate integer 是否已评价
products[].refund integer 是否已退款
express_number integer 运单号
pay_type_text string 支付类型简述
refund_status_text string 退款状态简述
delivery.username string 收货人名称
delivery.mobile string 收货人电话
delivery.address string 收货人地址
{"code":1,"msg":"","data":{}}
申请售后信息
Headers
名称 类型 必选 描述
cookie string 用户会话的cookie
token string 请求的Token
参数
名称 类型 必选 描述
order_id string 订单id
正文
Headers
参数
响应输出

                                                            

                                                        
返回参数
名称 类型 描述
status string 订单状态:-1=退货,0=取消订单,1=正常啊
total_price string 订单总价钱
delivery_price string 订单运费
have_paid integer 是否支付
have_delivered integer 是否发货
have_received integer 是否收货
have_commented integer 是否评论
refund_status integer 退款状态
products[].id string 商品id
products[].title string 商品名称
products[].image string 商品图片
products[].number integer 商品数量
products[].price string 商品价钱
products[].spec string 选中的规格
products[].order_product_id integer 订单商品id
products[].choose integer 是否选中
refund_status_text string 退款状态简述
refund.id string 退款信息id
refund.amount float 退款金额
refund.service_type string 服务类型:0=我要退款无需退货,1=我要退货退款,2=换货
refund.receiving_status integer 货物状态:0=未收到,1=已收到
refund.reason_type string 换货原因
refund.refund_explain string 退款说明
refund.express_number string 寄货物流单号
{"code":1,"msg":"","data":{}}
提交申请售后
Headers
名称 类型 必选 描述
cookie string 用户会话的cookie
token string 请求的Token
参数
名称 类型 必选 描述
order_id string 订单id
amount float 退款金额
service_type string 服务类型:0=我要退款无需退货,1=我要退货退款,2=换货
receiving_status integer 货物状态:0=未收到,1=已收到
reason_type string 换货原因
refund_explain string 退款说明
order_product_id integer 订单的商品的id
正文
Headers
参数
响应输出

                                                            

                                                        
返回参数
{"code":1,"msg":"提交","data":1}
售后发货
Headers
名称 类型 必选 描述
cookie string 用户会话的cookie
token string 请求的Token
参数
名称 类型 必选 描述
order_id string 订单id
express_number string 寄货物流单号
正文
Headers
参数
响应输出

                                                            

                                                        
返回参数
{"code":1,"msg":"","data":1}

收货地址


用户收货地址列表
Headers
名称 类型 必选 描述
token string 用户登录的Token
cookie string 用户会话的cookie
参数
正文
Headers
参数
响应输出

                                                            

                                                        
返回参数
名称 类型 描述
id integer 地址id
user_id integer 用户id
name string 收货人名称
mobile string 收货人电话
address string 收货详细地址
province_id integer 省份id
city_id integer 城市id
area_id integer 地区id
is_default integer 是否默认
province json {'name':'北京'}
city json {'name':'北京市'}
area json {'name':'东城区'}
{"code":1,"msg":"","data":[]}
添加收货地址
Headers
名称 类型 必选 描述
token string 用户登录的Token
cookie string 用户会话的cookie
参数
名称 类型 必选 描述
name string 名字
mobile string 电话号码
address string 详细地址
province_id integer 省份id
city_id integer 城市id
area_id integer 区域id
is_default integer 是否默认
正文
Headers
参数
响应输出

                                                            

                                                        
返回参数
{"code":1,"msg":"添加成功","data":true}
修改收货地址
Headers
名称 类型 必选 描述
token string 用户登录的Token
cookie string 用户会话的cookie
参数
名称 类型 必选 描述
id integer 地址id
name string 名字
mobile string 电话号码
address string 详细地址
province_id integer 省份id
city_id integer 城市id
area_id integer 区域id
is_default integer 是否默认
正文
Headers
参数
响应输出

                                                            

                                                        
返回参数
{"code":1,"msg":"修改成功","data":true}
删除收货地址
Headers
名称 类型 必选 描述
token string 用户登录的Token
cookie string 用户会话的cookie
参数
名称 类型 必选 描述
id integer 地址id
正文
Headers
参数
响应输出

                                                            

                                                        
返回参数
{"code":1,"msg":"删除成功","data":1}
获取地区信息
Headers
名称 类型 必选 描述
token string 用户登录的Token
cookie string 用户会话的cookie
参数
名称 类型 必选 描述
pid integer 省市区的id
正文
Headers
参数
响应输出

                                                            

                                                        
返回参数
名称 类型 描述
id integer 省市区的id
pid integer 上级id
label integer 省市区简称
{"code":1,"msg":"","data":[]}
获取单个收货地址
Headers
名称 类型 必选 描述
token string 用户登录的Token
cookie string 用户会话的cookie
参数
名称 类型 必选 描述
id integer 省市区的id
正文
Headers
参数
响应输出

                                                            

                                                        
返回参数
名称 类型 描述
id integer 地址id
user_id integer 用户id
name string 收货人名称
mobile string 收货人电话
address string 收货详细地址
province_id integer 省份id
city_id integer 城市id
area_id integer 地区id
is_default integer 是否默认
{"code":1,"msg":"","data":{}}

用户


会员登录
Headers
名称 类型 必选 描述
cookie string 用户会话的cookie
参数
名称 类型 必选 描述
mobile string 手机号
password string 密码
正文
Headers
参数
响应输出

                                                            

                                                        
返回参数
名称 类型 描述
user_id integer 用户id
username string 用户名称
mobile string 用户电话
avatar string 用户头像
score string 用户积分
token string 登录token
{"code":1,"msg":"登录成功","data":{}}
重置密码
Headers
名称 类型 必选 描述
cookie string 用户会话的cookie
参数
名称 类型 必选 描述
mobile string 手机号
password string 新密码
captcha string 验证码
正文
Headers
参数
响应输出

                                                            

                                                        
返回参数
{"code":1,"msg":"重置成功","data":1}
注册会员
Headers
名称 类型 必选 描述
cookie string 用户会话的cookie
参数
名称 类型 必选 描述
username string 用户名称
mobile string 手机号
password string 密码
captcha string 验证码
正文
Headers
参数
响应输出

                                                            

                                                        
返回参数
名称 类型 描述
userinfo.id integer 用户id
userinfo.username string 用户名称
userinfo.mobile string 用户电话
userinfo.avatar string 用户头像
userinfo.score string 用户积分
{"code":1,"msg":"注册成功","data":1}
更改用户信息
Headers
名称 类型 必选 描述
cookie string 用户会话的cookie
token string 登录token
参数
名称 类型 必选 描述
username string 用户名称
mobile string 手机号
avatar string 头像
正文
Headers
参数
响应输出

                                                            

                                                        
返回参数
{"code":1,"msg":"修改成功","data":1}
微信小程序登录
Headers
名称 类型 必选 描述
platform string 平台
参数
名称 类型 必选 描述
code string 小程序调用wx.login返回的code
正文
Headers
参数
响应输出

                                                            

                                                        
返回参数
名称 类型 描述
openid integer 微信用户openid
userInfo.id integer 用户id
userInfo.username string 用户名称
userInfo.mobile string 用户电话
userInfo.avatar string 用户头像
userInfo.score string 用户积分
userInfo.token string 用户登录token
{"code":1,"msg":"","data":{}}
微信小程序消息解密,必须先调用authSession获取到session_key
Headers
参数
名称 类型 必选 描述
iv string
encryptedData string
正文
参数
响应输出

                                                            

                                                        
返回参数
{"code":1,"msg":"","data":{手机号码,用户信息等等,具体看用户授权什么权限}}
微信小程序通过授权手机号登录
Headers
名称 类型 必选 描述
platform string 平台
参数
名称 类型 必选 描述
iv string
encryptedData string
正文
Headers
参数
响应输出

                                                            

                                                        
返回参数
名称 类型 描述
openid integer 微信用户openid
id integer 用户id
username string 用户名称
mobile string 用户电话
avatar string 用户头像
score string 用户积分
token string 用户登录token
{"code":1,"msg":"","data":{}}

基础类


支付


获取支付类型
Headers
名称 类型 必选 描述
cookie string 用户会话的cookie
platform string 客户端平台
参数
正文
Headers
参数
响应输出

                                                            

                                                        
返回参数
名称 类型 描述
alipay bool 是否支持 支付宝支付
wxpay bool 是否支持 微信支付
offline bool 是否支持 货到付款
score bool 是否支持 积分兑换
{"code":1,"msg":"","data":{}}
微信统一下单接口
Headers
名称 类型 必选 描述
cookie string 用户会话的cookie
token string 请求的Token
platform string 客户端平台
参数
名称 类型 必选 描述
order_id string 订单id
正文
Headers
参数
响应输出

                                                            

                                                        
返回参数
名称 类型 描述
return_code string 状态码
result_code string 状态码
return_msg string 状态信息
appid string 小程序app_id
mch_id string 商户号
nonce_str string 支付签名随机串
sign string 签名
trade_type string 支付类型
timeStamp string 时间戳
paySign string 支付签名
prepay_id string 统一支付接口返回的prepay_id参数值,提交格式如:package: 'prepay_id=' + data.prepay_id
{"code":1,"msg":"","data":{}}
线下支付-货到付款
Headers
名称 类型 必选 描述
cookie string 用户会话的cookie
token string 请求的Token
参数
名称 类型 必选 描述
order_id string 订单id
正文
Headers
参数
响应输出

                                                            

                                                        
返回参数
{"code":1,"msg":"","data":true}
微信内H5-JSAPI支付
Headers
名称 类型 必选 描述
cookie string 用户会话的cookie
token string 请求的Token
参数
正文
Headers
参数
响应输出

                                                            

                                                        
返回参数
名称 类型 描述
debug bool 调试模式
jsApiList array 授权功能列表
appId string 小程序app_id
nonceStr string 随机数
timestamp string 时间戳
signature string 签名
{"code":1,"msg":"","data":{}}
支付宝支付
Headers
名称 类型 必选 描述
cookie string 用户会话的cookie
token string 请求的Token
参数
名称 类型 必选 描述
order_id string 订单id
正文
Headers
参数
响应输出

                                                            

                                                        
返回参数
重定向到支付宝支付网页