多应用+插件架构,代码干净,二开方便,首家独创一键云编译技术,文档视频完善,免费商用码云13.8K 广告
## 计算信息 ~~~[api] post:/api/ordercreate/calculate *token#用户token cart_ids#购物车id项目‘,’隔开 sku_id#商品sku_id,立即购买 num#商品数量,立即购买 is_balance#是否使用余额 app_type#订单来源 h5,weapp app_type_name#订单来源名称 h5,微信小程序 buyer_message#买家留言 delivery#配送信息类似{"265":{"showTimeBar":false,"delivery\_type":"express","delivery\_type\_name":"物流配送","store\_id":0}} express, local, store local的话需要传输buyer_ask_delivery_time, store的话需要传输store_id coupon#优惠券信息['site_id' => ['coupon_id' => '优惠券id']]类似{"265":{}} member_address#会员地址 latitude#会员经度 longitude#会员纬度 is_invoice#是否需要发票 0 无发票 1 有发票 invoice_type#发票类型 1 纸质发票 2 电子发票 invoice_title#发票抬头 taxpayer_number#纳税人识别号 invoice_content#发票内容 invoice_full_address#发票邮寄地址 is_tax_invoice#是否需要增值税专用发票 invoice_email#发票发送邮件 invoice_title_type#发票抬头类型 1 个人 2 企业 <<< success { "code": 0, "message": "操作成功", "data": { "cart_ids": "", "sku_id": "60", "num": "1", "site_id": 1, "member_id": "3", "is_balance": "0", "is_point": "1", "order_from": "h5", "order_from_name": "H5", "delivery": { "store_id": 0, "delivery_type": "express", "delivery_type_name": "物流配送" }, "coupon": [], "member_address": null, "latitude": null, "longitude": null, "is_invoice": "0", "invoice_type": "1", "invoice_title": "", "taxpayer_number": "", "invoice_content": "123", "invoice_full_address": "", "is_tax_invoice": "0", "invoice_email": "", "invoice_title_type": "1", "buyer_ask_delivery_time": "", "member_account": { "member_id": 3, "source_member": 0, "username": "mjl", "nickname": "mjl", "mobile": "", "email": "", "status": 1, "headimg": "", "member_level": 1, "member_level_name": "普通会员", "member_label": ",", "member_label_name": "", "qq": "", "realname": "", "sex": 0, "location": "", "birthday": 0, "reg_time": 1595317000, "point": "1521.00", "balance": "20100.20", "growth": "20.12", "balance_money": "0.00", "account5": "0.00", "balance_total": 20100.2, "is_pay_password": 0 }, "shop_goods_list": { "goods_money": 88, "site_id": 1, "site_name": "官方旗舰店412454", "goods_list_str": "60:1", "goods_list": [{ "sku_id": 60, "sku_name": "孕妇秋冬毛衣女中长款针织上衣时尚韩版宽松大码黑色内搭打底衫潮 xl", "sku_no": "", "price": "88.00", "discount_price": "88.00", "cost_price": "0.00", "stock": 555, "volume": "0.00", "weight": "0.00", "sku_image": "upload\/1\/common\/images\/20200722\/20200722091334159538041443317.jpg", "site_id": 1, "goods_state": 1, "is_virtual": 0, "is_free_shipping": 1, "shipping_template": 0, "goods_class": 1, "goods_class_name": "实物商品", "goods_id": 17, "site_name": "官方旗舰店412454", "sku_spec_format": "[{\"spec_id\":-280,\"spec_name\":\"\\u5c3a\\u7801\",\"spec_value_id\":-396,\"spec_value_name\":\"xl\",\"image\":\"\"}]", "goods_name": "孕妇秋冬毛衣女中长款针织上衣时尚韩版宽松大码黑色内搭打底衫潮", "max_buy": 0, "min_buy": 0, "num": "1", "goods_money": 88, "real_goods_money": 88, "coupon_money": 0, "promotion_money": 0 }], "order_name": "孕妇秋冬毛衣女中长款针织上衣时尚韩版宽松大码黑色内搭打底衫潮 xl", "goods_num": "1", "limit_purchase": { "goods_17": { "goods_id": 17, "goods_name": "孕妇秋冬毛衣女中长款针织上衣时尚韩版宽松大码黑色内搭打底衫潮 xl", "num": "1", "max_buy": 0, "min_buy": 0 } }, "promotion_money": 0, "manjian_rule_list": [], "order_config": { "auto_close": "30", "auto_take_delivery": "10", "auto_complete": "1", "invoice_status": "1", "invoice_rate": "3", "invoice_content": "123", "invoice_money": "15" }, "express_config": { "site_id": 1, "app_module": "shop", "config_key": "EXPRESS_CONFIG", "value": [], "config_desc": "物流配送设置", "is_use": 1, "create_time": 1585195562, "modify_time": 1585725668 }, "store_config": { "site_id": 1, "app_module": "shop", "config_key": "EXPRESS_STORE_CONFIG", "value": [], "config_desc": "门店自提配置设置", "is_use": 1, "create_time": 1585207984, "modify_time": 1588991654 }, "local_config": { "site_id": 1, "app_module": "shop", "config_key": "EXPRESS_LOCAL_DELIVERY_CONFIG", "value": [], "config_desc": "同城配送配置设置", "is_use": 1, "create_time": 1585106466, "modify_time": 1585725248, "info": { "id": 3, "site_id": 1, "type": "default", "area_type": 1, "local_area_json": "", "time_is_open": 0, "time_type": 0, "time_week": [], "start_time": 0, "end_time": 0, "update_time": 1591239731, "is_open_step": 0, "start_distance": "0.00", "start_delivery_money": "0.00", "continued_distance": "0.00", "continued_delivery_money": "0.00", "start_money": "0.00", "delivery_money": "0.00", "area_array": [], "local_area_array": [] } }, "delivery": { "delivery_type": "express" }, "order_money": 88, "invoice_status": "1", "invoice": { "invoice_content_array": ["123"], "invoice_delivery_money": "15", "invoice_rate": "3" }, "is_invoice": "0", "invoice_money": 0, "invoice_delivery_money": 0, "max_usable_point": 0, "point_cash_config": { "is_enable": 0, "cash_rate": 0, "is_limit": 0, "limit": 0, "is_limit_use": 0, "type": 0, "max_use": 0 }, "delivery_money": 0, "adjust_money": 0, "balance_money": 0, "pay_money": 88, "buyer_message": "" }, "delivery_money": 0, "coupon_money": 0, "adjust_money": 0, "invoice_money": 0, "invoice_delivery_money": 0, "promotion_money": 0, "order_money": 88, "balance_money": 0, "pay_money": 88, "goods_money": 88, "goods_num": 1, "is_virtual": 0, "point_money": 0 }, "timestamp": 1595383946 } <<< error 这里填写错误的返回码 以此类推,每个状态使用 <<< 分割, 第一行添加状态名称 ~~~