请求URL:

POST/plugin.wechat-chat-sidebar.frontend.controller.customer.customer.get-order-list

参数:

参数名 是否必须 类型 说明
client string 值是:work 代表是企业微信端
type int 值是:17 代表是企业微信端
order_type string order: "商城订单",hotel_order: "酒店订单",fight_groups_order: "拼团订单",snatch_regiment_order: "抢团订单" ,lease_order 租赁订单
status int 订单状态,商城订单 : -1 全部 0 待付款订单 1 待发货 2 待收货订单 3 完成 酒店订单 : -1 全部 0 待付款订单 1 待发货 2 待入住 3 完成 11 待退房 拼团订单 : -1 全部 0 待付款订单 1 待发货 2 待收货订单 3 已完成订单 6 正在拼团的订单 **抢团订单 **: -1 全部 0 待付款订单 1 待发货 2 待收货订单 3 已完成订单 6 正在拼团的订单 租赁订单 : -1 全部 0 待付款订单 1 待发货 2 待收货订单 3 待归还 0.1元拼订单 : -1 全部 0 待付款订单 1 待发货 2 待收货订单 3 已完成订单 6 正在拼团的订单

返回示例:

正确时返回:

{
	result: 1,
	msg: "ok",
	data: {
		current_page: 1,
		data: [{
				id: 2921,
				order_sn: "SN20210324113443R7",
				price: "1.00",
				goods_price: "1.00",
				goods_total: 1,
				status: 2,
				create_time: "2021-03-24 11:34:43",
				finish_time: "1970-01-01 08:00:00",
				pay_time: "2021-03-24 11:35:27",
				send_time: "2021-08-16 15:45:45",
				cancel_pay_time: "1970-01-01 08:00:00",
				cancel_send_time: "1970-01-01 08:00:00",
				dispatch_type_id: 1,
				dispatch_price: "0.00",
				discount_price: "0.00",
				pay_type_id: 3,
				order_goods_price: "1.00",
				deduction_price: "0.00",
				refund_id: 0,
				is_plugin: 0,
				change_price: "0.00",
				change_dispatch_price: "0.00",
				comment_status: 0,
				order_pay_id: "2937",
				plugin_id: 0,
				is_virtual: 0,
				mark: "",
				is_pending: 0,
				note: null,
				cost_amount: "1.00",
				shop_name: "芸众商城",
				no_refund: 0,
				need_address: 0,
				invoice_type: 0,
				rise_type: 1,
				collect_name: "",
				company_number: "",
				invoice: null,
				auto_receipt: 0,
				fee_amount: "0.00",
				service_fee_amount: "0.00",
				is_all_send_goods: 0,
				dispatch_type_name: "快递",
				status_name: "待收货",
				pay_type_name: "余额88888888",
				button_models: [],
				process: [],
				has_one_pay_type: {
					id: 3,
					name: "余额999",
					plugin_id: 0,
					code: "balance",
					type: 1,
					unit: "元",
					updated_at: "2019-08-26 14:45:01",
					created_at: null,
					deleted_at: null,
					setting_key: "shop.pay.credit",
					need_password: 1,
					group_id: 3
				},
				has_many_order_goods: [{
					goods_id: 18254,
					goods_price: "1.00",
					total: 1,
					price: "1.00",
					thumb: "http://www.wq.com/attachment/images/2/2019/07/m111GM5VuG0iPdxp5t4B4xM1PG01u4.jpg",
					title: "测试发布商品",
					goods_option_id: 0,
					goods_option_title: "",
					comment_status: 0,
					buttons: []
				}],
				address: {
					address: "吉林省 白山市 长白朝鲜族自治县 测试是说是肯德基快递费口水都快",
					mobile: "13250597987",
					realname: "供应商物流"
				},
				has_one_behalf_pay: null
			},
		
		],
		first_page_url: "http://www.wq.com/addons/yun_shop/api.php?page=1",
		from: 1,
		last_page: 1,
		last_page_url: "http://www.wq.com/addons/yun_shop/api.php?page=1",
		next_page_url: null,
		path: "http://www.wq.com/addons/yun_shop/api.php",
		per_page: 20,
		prev_page_url: null,
		to: 9,
		total: 9,
		menu_group: [],
		order_name: {
			order: "商城订单",
			hotel_order: "酒店订单",
			fight_groups_order: "拼团订单",
			snatch_regiment_order: "抢团订单"
		}
	}
}

错误时返回:

 {
"result": 0,
"msg": "外部联系人userid不能为空",
"data": []
}

返回参数说明:

参数名 类型 说明
data[0][id] int 订单id
data[0][order_sn] string 订单号
data[0][price] int 实付金额
data[0][goods_price] int 商品(原价)总价
data[0][goods_total] int 商品数量
data[0][status] int 订单状态:-1关闭,0待付款,1待发货,2待收货,3已完成
data[0][create_time] string 创建时间
data[0][finish_time] string 完成时间
data[0][pay_time] string 支付时间
data[0][send_time] string 发货时间
data[0][cancel_pay_time] string 取消支付时间
data[0][cancel_send_time] string 取消发货时间
data[0][dispatch_type_id] string 发货时间
data[0][send_time] int dispatch_type表id
data[0][dispatch_price] int 运费
data[0][discount_price] int 优惠金额
data[0][pay_type_id] int 支付类型
data[0][order_goods_price] int 订单商品总金额
data[0][deduction_price] int 抵扣金额
data[0][refund_id] int order_refund表id
data[0][is_plugin] int 插件id
data[0][change_price] int 改价金额
data[0][change_dispatch_price] int 运费改价金额
data[0][has_one_pay_type] arr 支付类型
data[0][has_many_order_goods] arr 订单商品
data[0][address] arr 订单收货地址
data[0][order_name] arr 订单名称