请求URL:

POST/plugin.customer-center.frontend.controllers.customer.get-customer

参数:

参数名 是否必须 类型 说明
member_id int 会员id
income_statistic_type int 1今天;2昨天;3本周;4上周;5本月;6上月;

返回示例:

正确时返回:

{
	result: 1,
	msg: "ok",
	data: {
		statistics: [{
				title: "订单数",
				url: "",
				mini_url: "",
				value: 0
			},
			{
				title: "交易额",
				url: "",
				mini_url: "",
				value: 0
			},
			{
				title: "累计收入",
				url: "incomedetails",
				mini_url: "/packageA/member/extension/incomedetails/incomedetails",
				value: "102.11"
			},
			{
				title: "已提现收入",
				url: "presentationRecord",
				mini_url: "/packageA/member/presentationRecord_v2/presentationRecord_v2?orderType=extension",
				value: "0.00"
			},
			{
				title: "未提现收入",
				url: "withdrawal",
				mini_url: "/packageA/member/withdrawal/withdrawal",
				value: "102.11"
			},
			{
				title: "提现中收入",
				url: "presentationRecord",
				mini_url: "/packageA/member/presentationRecord_v2/presentationRecord_v2?orderType=extension",
				value: "0.00"
			},
			{
				title: "团队粉丝",
				url: "myRelationship",
				mini_url: "/packageD/member/myRelationship/myRelationship",
				value: 0
			},
			{
				title: "直推粉丝",
				url: "myRelationship",
				mini_url: "/packageD/member/myRelationship/myRelationship",
				value: 10
			}
		],
		member: {
			uid: 2636,
			uniacid: 2,
			credit1: "99730.11",
			credit2: "3214.82",
			credit3: "0.00",
			createtime: 1542336970,
			nickname: "18520632247",
			realname: "hghghg",
			avatar: "http://www.wq.com/addons/yun_shop/static/images/photo-mr.jpg",
			mobile: "18520632247",
			birthyear: 0,
			birthmonth: 0,
			birthday: "2021-09-07",
			gender: 0,
			alipay: "ddddd",
			avatar_image: "http://www.wq.com/addons/yun_shop/static/images/photo-mr.jpg",
			username: "18520632247",
			yz_member: {
				m_id: 208,
				member_id: 2636,
				uniacid: 2,
				parent_id: 1,
				group_id: 2,
				level_id: 11,
				inviter: 1,
				is_black: 0,
				province_name: "",
				city_name: "",
				area_name: "",
				province: 0,
				city: 0,
				area: 0,
				address: null,
				referralsn: "0",
				is_agent: 1,
				alipayname: "sss",
				alipay: "ddddd",
				content: "adsad",
				status: 2,
				child_time: 1542336971,
				agent_time: 1616491387,
				apply_time: 1542802855,
				relaton: "",
				relation: "2636,1",
				created_at: "2018-11-16 10:56:11",
				updated_at: "2021-09-06 10:11:27",
				deleted_at: null,
				custom_value: "dsad",
				validity: "2021-11-11",
				member_form: "[{"
				name ":"
				111 ","
				sort ":"
				1 ","
				del ":1,"
				pinyin ":"
				111 ","
				value ":"
				adadsa "},{"
				name ":"\
				u7231\ u597d ","
				sort ":"
				2 ","
				del ":1,"
				pinyin ":"
				aihao ","
				value ":"
				65454 "},{"
				name ":"\
				u7279\ u957f ","
				sort ":"
				3 ","
				del ":1,"
				pinyin ":"
				techang ","
				value ":"
				5665656 "}]",
				pay_password: null,
				salt: null,
				withdraw_mobile: "",
				wechat: "ffffff",
				yz_openid: "0",
				invite_code: "K5S2DBHR",
				upgrade_at: null,
				downgrade_at: null,
				access_token_1: "0",
				access_expires_in_1: 0,
				refresh_token_1: "0",
				refresh_expires_in_1: 0,
				access_token_2: "0",
				access_expires_in_2: 0,
				refresh_token_2: "0",
				refresh_expires_in_2: 0,
				is_old: 0,
				mark_member_id: 0,
				system_type: "",
				last_login_time: 1630894287,
				group: {
					id: 2,
					group_name: "会员一"
				},
				level: {
					id: 11,
					level_name: "会员等级三"
				},
				agent: {
					uid: 1,
					avatar: "http://wx.qlogo.cn/mmopen/JoMbGNWIQsRVOx5e4S7MZgeFicicjDGKsso2Hvko9ZUV5nCfIRgPoDSeRJj6JdnPKMEWiaUk5KrzJic918c8jDTSXUVFdU6YfrP3/0",
					nickname: "肥仔",
					avatar_image: "https://wx.qlogo.cn/mmopen/JoMbGNWIQsRVOx5e4S7MZgeFicicjDGKsso2Hvko9ZUV5nCfIRgPoDSeRJj6JdnPKMEWiaUk5KrzJic918c8jDTSXUVFdU6YfrP3/0",
					username: "肥仔"
				}
			},
			has_one_fans: null,
			bank_card: {
				id: 6,
				uniacid: 2,
				member_id: 2636,
				member_name: "123",
				bank_card: "621700332202008227",
				is_default: 1,
				created_at: "2017-10-23 19:42:22",
				updated_at: "2017-10-31 09:34:23",
				bank_name: "建设银行",
				bank_province: "广东",
				bank_city: "广州荔湾",
				bank_branch: "建设银行大钟支行"
			},
			group_id: 2,
			group_name: "会员一",
			level_id: 11,
			level_name: "会员等级三",
			alipay_name: "sss",
			province_name: "",
			city_name: "",
			area_name: "",
			province: 0,
			city: 0,
			area: 0,
			address: null,
			wechat: "ffffff",
			is_agent: 1,
			referral: {
				uid: 1,
				avatar: "http://wx.qlogo.cn/mmopen/JoMbGNWIQsRVOx5e4S7MZgeFicicjDGKsso2Hvko9ZUV5nCfIRgPoDSeRJj6JdnPKMEWiaUk5KrzJic918c8jDTSXUVFdU6YfrP3/0",
				nickname: "肥仔",
				level: "订单金额满",
				is_show: null
			},
			avatar_dir: "http://www.wq.com/addons/yun_shop/storage/app/public/avatar/",
			copyright: "",
			credit: {
				is_show: 1,
				text: "余额88888888",
				data: "3214.82"
			},
			integral: {
				is_show: 1,
				text: "测试",
				data: "99730.11"
			},
			coupon: {
				is_show: 1,
				text: "优惠券",
				data: 0
			},
			love_show: {
				usable_love_show: 0,
				unable_love_show: 0,
				usable_text: "爱心值",
				unable_text: "白爱心值",
				usable_data: "460.27",
				unable_data: "45.43"
			},
			integral_show: {
				is_show: false,
				text: "消费积分12",
				data: "0.00"
			},
			consumer_reward_show: {
				is_show: "1",
				text: "自定义名称",
				amount: "97290.81"
			},
			income: "323.40",
			inviteCode: 0,
			is_bind_invite: 0,
			copyrightImg: "",
			member_cancel_status: 1,
			yop: 0,
			yop_pro: 0,
			is_open_converge_pay: 1,
			cmc_pay: 0
		}
	}
}

错误时返回:

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

返回参数说明:

参数名 类型 说明
statistics arr 统计数据
statistics[0][title] string 统计名称
statistics[0][url] string 路由
statistics[0][mini_url] string 小程序路径
statistics[0][value] string 统计值
member[uid] int 外部联系人系统会员id
member[credit1] int 外部联系人系统会员积分
member[credit2] int 外部联系人系统会余额
member[createtime] int 外部联系人系统会员创建时间
member[nickname] string 外部联系人系统会员昵称
member[realname] string 外部联系人系统会员名字
member[avatar] string 外部联系人系统会员头像
member[mobile] string 外部联系人系统会员手机号码
member[birthyear] string 外部联系人系统会员出生年份
member[birthmonth] string 外部联系人系统会员出生月份
member[birthday] string 外部联系人系统会员出生年月日
member[gender] int 性别
member[alipay] string 外部联系人系统会员支付宝账号
member[username] int 外部联系人系统会员账号
member[yz_member][parent_id] int 外部联系人系统会员上级id
member[yz_member][group] arr 外部联系人系统会员分组
member[yz_member][level] arr 外部联系人系统会员等级
member[yz_member][agent] arr 外部联系人系统会员上级信息
member[yz_member][inviter] int 外部联系人系统会员邀请人
member[yz_member][is_black] int 外部联系人系统会员是否黑名单
member[yz_member][alipayname] string 外部联系人系统会员支付宝名称
member[yz_member][alipay] string 外部联系人系统会员支付宝账号
member[yz_member][bank_card] arr 外部联系人系统会员银行卡账号
member[yz_member][wechat] string 外部联系人系统会员微信
member[yz_member][is_existence] int 外部联系人系统会员是否有名片
member[yz_member][is_agent] int 外部联系人系统会员是否推广员