请求URL:

POST/plugin.wechat-chat-sidebar.frontend.controller.customer.customer.income-record

参数:

参数名 是否必须 类型 说明
client string 值是:work 代表是企业微信端
type int 值是:17 代表是企业微信端
income_type string 收入明细类型 type

返回示例:

正确时返回:

{
	result: 1,
	msg: "ok",
	data: {
		current_page: 1,
		data: [{
			id: 74932,
			create_month: "202106",
			incometable_type: "Yunshop\StoreRewards\common\models\StoreRewardsRecord",
			type_name: "门店奖励",
			amount: "30.00",
			created_at: "2021-06-04 16:56:01",
			status_name: "",
			pay_status_name: ""
		}],
		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: 1,
		total: 1,
		income_type: {
			balance: {
				title: "余额提现",
				type: "balance",
				class: "balance",
				url: "finance.balance-withdraw.detail"
			},
			agency: {
				title: "云库存",
				type: "agency",
				type_name: "云库存代理商奖励",
				class: "Yunshop\Agency\models\AgencyModel"
			},
			agentDividend: {
				title: "代理商分红",
				type: "agentDividend",
				type_name: "代理商分红",
				class: "Yunshop\AgentDividend\common\models\AgentDividendModel"
			},
			appointment: {
				title: "门店预约",
				type: "appointment",
				type_name: "提成",
				class: "Yunshop\Appointment\common\models\AppointmentOrderService"
			},
			
		}
	}
}

错误时返回:

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

返回参数说明:

参数名 类型 说明
data[data][0][id] int 收入明细id
data[data][0][create_month] int 收入明细月份
data[data][0][incometable_type] int 收入明细类型
data[data][0][type_name] int 收入明细类型名称
data[data][0][amount] int 收入明细金额
data[data][0][created_at] int 收入明细创建时间
data[data][0][status_name] int 收入明细状态名称
data[data][0][pay_status_name] int 收入明细支付状态名称
data[income_type][balance][title] int 收入明细类型标题
data[income_type][balance][type] int 收入明细类型
data[income_type][balance][type_name] int 收入明细类型名称
data[income_type][balance][calss] int 收入明细类型