💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、星火、月之暗面及文生图 广告
#### 列表 ~~~[api] get:/order/index number:status=0#订单状态,0=>全部,1=>待付款,2=>待收货,3=>待评价 number:p=1#当前页数 number:ps=20#分页大小 <<< success { "message": "success", "code": 1, "data": [ { "id": "20", "sn": "20180418162922973117", "point_deduction": "1.00", "price": "2898.00", "is_cancel": "0", "is_payment": "0", "is_deliver": "0", "is_receiving": "0", "is_complete": "0", "is_evaluate": "0", "sort": "0", "orderGoods": [ { "id": "7", "goods_id": "1", "order_id": "20", "name": "vivo X21全面屏智能全网通4G手机", "thumb": "/img/no-image.png", "price": "2898.00", "point": "1.00", "is_real": "1" } ], "status": 0, "status_name": "待付款" } ], "_meta": { "totalCount": 7, "pageCount": 1, "currentPage": 1, "perPage": 20 } } ~~~ #### 详情 ~~~[api] get:/order/retrieve *number:id#订单ID <<< success { "message": "success", "code": 1, "data": { "id": "14", "sn": "20180418160640116503", "point_deduction": "1.00", "price": "2898.00", "is_cancel": "0", "is_payment": "0", "is_deliver": "0", "is_receiving": "0", "is_complete": "0", "is_evaluate": "0", "sort": "0", "orderGoods": [ { "id": "1", "goods_id": "1", "order_id": "14", "name": "vivo X21全面屏智能全网通4G手机", "thumb": "/img/no-image.png", "price": "2898.00", "point": "1.00", "is_real": "1" } ], "status": 0, "status_name": "待付款" } } ~~~ #### 创建 ~~~[api] post:/order/create *number:goods_id#商品ID *number:address_id#地址ID *number:type#类型,1=>优惠购买,2=>原价购买 <<< success { "message": "success", "code": 1, "data": { "id": 15, "sn": "20180518180036519013", "type": 1, "point_deduction": 300000, "price": "0.01" } } <<< error { "message": "积分不足", "code": 0, "data": [] } <<< example { "goods_id": 3, "address_id": 3, "type": 1 } ~~~ #### 支付 ~~~[api] post:/order/payment *number:order_id#订单ID *number:pay_type#支付类型,1=>余额支付,2=>微信支付,3=>... <<< success { "message": "success", "code": 1, "data": { "id": 15, "sn": "20180418160724582046", "point_deduction": "1.00", "price": "2898.00" } } <<< error { "message": "订单已支付", "code": 0, "data": [] } <<< example { "order_id": 1, "pay_type": 2 } ~~~