企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
#### 记录 ~~~[api] get:/index/integral/log number:p=1#当前页数 number:ps=10#分页大小 <<< success { "code": 1, "msg": "", "time": "2018-09-10 13:13:02", "data": [ { "id": 2, "member_id": 1, "integral_id": 1, "operator_id": 1, "recharge_sn": "", "operate": 1, "money": "100.00", "before": "899.00", "after": "799.00", "remark": "购物兑换(兑换商品:积分商品1,数量:100)", "status": 1, "created_at": "2018-09-10 12:02:23", "updated_at": "2018-09-10 12:02:23", "status_text": "正常" } ], "_meta": { "totalCount": 1, "pageCount": 1, "currentPage": 1, "perPage": 10 } } ~~~ #### 商品 ~~~[api] get:/index/integral/goodsIndex number:p=1#当前页数 number:ps=10#分页大小 <<< success { "code": 1, "msg": "", "time": "2018-09-09 13:12:54", "data": [ { "id": 1, "sn": "20180907004346599814", "name": "积分商品1", "thumb": "http://oss.dgyouduo.com/static/img/no-image.png", "banner": [ "http://oss.dgyouduo.com/static/img/no-image-16x10.png" ], "summary": "", "content": "", "integral": "1.00", "market_price": "10.00", "inventory": 1000, "sort": 0, "is_sale": 1, "status": 1, "created_at": "2018-09-07 00:43:47", "updated_at": "2018-09-09 12:15:45", "saled_at": "2016-01-01 00:00:00", "status_text": "正常" } ], "_meta": { "totalCount": 1, "pageCount": 1, "currentPage": 1, "perPage": 10 } } ~~~ #### 商品详情 ~~~[api] get:/index/integral/goodsRetrieve/id/:id <<< success { "code": 1, "msg": "", "time": "2018-09-10 09:18:16", "data": { "id": 1, "sn": "20180907004346599814", "name": "积分商品1", "thumb": "http://oss.dgyouduo.com/static/img/no-image.png", "banner": [ "http://oss.dgyouduo.com/static/img/no-image-16x10.png" ], "summary": "", "content": "", "integral": "1.00", "market_price": "10.00", "inventory": 1000, "sort": 0, "is_sale": 1, "status": 1, "created_at": "2018-09-07 00:43:47", "updated_at": "2018-09-09 12:15:45", "saled_at": "2016-01-01 00:00:00", "status_text": "正常" } } ~~~ #### 订单列表 > 状态,0=>已取消,1=>待付款,2=>待发货,3=>待收货,4=>待评价,5=>已评价 ~~~[api] get:/index/integral/orderIndex number:status=0#状态,0=>全部,1=>待付款,2=>待发货,3=>待收货,4=>待评价 number:p=1#当前页数 number:ps=10#分页大小 <<< success { "code": 1, "msg": "", "time": "2018-09-10 13:08:26", "data": [ { "id": 1, "member_id": 1, "sn": "20180910111136666395", "buyer_ip": "127.0.0.1", "buyer_terminal": 1, "consignee": "收货人", "mobile": "18666864521", "email": "", "country": "86", "province": "440000", "city": "441900", "district": "441903", "twon": "0", "address": "恒大", "zipcode": "", "longitude": "0", "latitude": "0", "express_name": "", "express_shipper_code": "", "express_code": "", "express_price": "0.00", "express_remark": "", "integral_deduction": "1.00", "balance_deduction": "0.00", "actual_price": "10.00", "price": "10.00", "member_remark": "", "remark": "", "pay_type": 0, "pay_code": "", "sort": 0, "is_cancel": 0, "is_payment": 0, "is_deliver": 0, "is_receiving": 0, "is_complete": 0, "is_evaluate": 0, "status": 1, "created_at": "2018-09-10 11:11:36", "updated_at": "2018-09-10 11:11:36", "cancel_at": "2016-01-01 00:00:00", "payment_at": "2016-01-01 00:00:00", "deliver_at": "2016-01-01 00:00:00", "receiving_at": "2016-01-01 00:00:00", "complete_at": "2016-01-01 00:00:00", "evaluate_at": "2016-01-01 00:00:00", "order_goods": [ { "id": 1, "order_id": 1, "name": "IntegralGoods", "thumb": "http://oss.dgyouduo.com/static/img/no-image.png", "integral": "1.00", "market_price": "10.00", "number": 1 } ], "status_text": "待付款" } ], "_meta": { "totalCount": 1, "pageCount": 1, "currentPage": 1, "perPage": 10 } } ~~~ #### 订单详情 ~~~[api] get:/index/integral/orderRetrieve/id/:id <<< success { "code": 1, "msg": "", "time": "2018-09-10 13:02:30", "data": { "id": 6, "member_id": 1, "sn": "20180910120223621642", "buyer_ip": "127.0.0.1", "buyer_terminal": 1, "consignee": "收货人", "mobile": "18666864521", "email": "", "country": "86", "province": "440000", "city": "441900", "district": "441903", "twon": "0", "address": "恒大", "zipcode": "", "longitude": "0", "latitude": "0", "express_name": "", "express_shipper_code": "", "express_code": "", "express_price": "0.00", "express_remark": "", "integral_deduction": "100.00", "balance_deduction": "0.00", "actual_price": "1000.00", "price": "1000.00", "member_remark": "", "remark": "", "pay_type": 7, "pay_code": "1", "sort": 0, "is_cancel": 0, "is_payment": 1, "is_deliver": 0, "is_receiving": 0, "is_complete": 0, "is_evaluate": 0, "status": 2, "created_at": "2018-09-10 12:02:23", "updated_at": "2018-09-10 12:02:23", "cancel_at": "2016-01-01 00:00:00", "payment_at": "2018-09-10 12:02:23", "deliver_at": "2016-01-01 00:00:00", "receiving_at": "2016-01-01 00:00:00", "complete_at": "2016-01-01 00:00:00", "evaluate_at": "2016-01-01 00:00:00", "order_goods": [ { "id": 6, "order_id": 6, "goods_id": 1, "name": "积分商品1", "thumb": "http://oss.dgyouduo.com/static/img/no-image.png", "integral": "1.00", "market_price": "10.00", "number": 100 } ], "status_text": "待发货" } } ~~~ #### 订单创建 ~~~[api] post:/index/integral/orderCreate *number:goods_id#商品ID *number:number#商品数量 *number:address_id#收货地址ID *number:buyer_terminal#购买者终端,1=>PC,2=>WAP,3=>微信,4=>安卓,5=>IOS *string:longitude#经度 *string:latitude#纬度 string:member_remark#会员备注 <<< success { "code": 1, "msg": "", "time": "2018-09-10 12:02:22", "data": { "member_remark": "", "member_id": 1, "sn": "20180910120223621642", "buyer_ip": "127.0.0.1", "buyer_terminal": "1", "consignee": "收货人", "mobile": "18666864521", "email": "", "country": 86, "province": 440000, "city": 441900, "district": 441903, "twon": 0, "address": "恒大", "zipcode": "", "longitude": "0", "latitude": "0", "express_name": "", "express_shipper_code": "", "express_code": "", "express_price": 0, "express_remark": "", "integral_deduction": 100, "balance_deduction": 0, "actual_price": 1000, "price": 1000, "pay_type": 7, "pay_code": 1, "is_payment": 1, "payment_at": "2018-09-10 12:02:23", "created_at": "2018-09-10 12:02:23", "updated_at": "2018-09-10 12:02:23", "id": "6" } } ~~~