简要描述:
请求域名:
请求URL:
POST:plugin.business-card.frontend.controllers.card.card.sendCardByRoleId
参数:
参数名 |
是否必须 |
类型 |
说明 |
card_id |
是 |
|
名片id |
返回示例:
正确时返回:
{
"result": 1,
"msg": "ok",
"data": {
"result": {
"member": {
"supplier": {
"id": 10,
"member_id": 95,
"username": "供应商1",
"password": "123456",
"realname": "测试",
"mobile": "15219025049",
"status": 1,
"apply_time": 0,
"created_at": "2018-08-20 09:55:51",
"updated_at": "2019-04-11 09:38:44",
"deleted_at": 0,
"uniacid": 5,
"salt": "BE1UqUbE",
"product": "0",
"remark": "0",
"uid": 23,
"logo": "https://dev1.yunzshop.com/attachment/images/5/2018/08/SC5e49EjJ242PCpSJcqW1Jcc4ph1He.png",
"company_bank": "",
"company_ali": "",
"ali": "",
"wechat": "",
"diyform_data_id": 0,
"bank_username": "",
"bank_of_accounts": "",
"opening_branch": "",
"company_ali_username": "",
"ali_username": "",
"province_name": "",
"city_name": "",
"district_name": "",
"grade": 0,
"store_name": "null",
"supplier_id": 10,
"has_one_member": {53 items},
"has_one_wq_user": {
"uid": 23,
"username": "供应商1"
}
},
"goods": [5 items],
"status": {
"collected": 0,
"reliabled": 0
},
"achievement": {
"count": 0,
"amount": 0,
"visit_statistics": {
"card_id": 284,
"visit": 2,
"visitor_num": 3
}
}
}
},
"card": {
"id": 284,
"uniacid": 5,
"member_id": 95,
"card_avatar": "https://thirdwx.qlogo.cn/mmopen/vi_32/DIzCuicXIibibGhojtNgYAUyBk10rTibG2fnVeOOyNFebicaiarwMcCZRkricATrQuJbxM98jDiccX5dmEg6Pw7omtkc1A/132",
"card_name": "Joy",
"card_mobile": "1111",
"card_wechat": "1111",
"role_id": 7,
"introduction": "阿斯顿撒",
"voice": "",
"qr_code": null,
"picture": "a:3:{i:0;s:80:"https://dev1.yunzshop.com/attachment/image/7480713581de8b9e4b035b458dda5775.jpeg";i:1;s:80:"https://dev1.yunzshop.com/attachment/image/121c466779828c2f0622692a62251096.jpeg";i:2;s:80:"https://dev1.yunzshop.com/attachment/image/7200b507c542da28a08108a726e57263.jpeg";}",
"areas": "a:4:{i:0;i:0;i:1;i:0;i:2;i:0;i:3;i:0;}",
"address": "萨达的",
"status": 1,
"created_at": "2019-04-16 14:55:29",
"updated_at": "2019-04-18 23:15:38",
"status_name": "开启",
"role_name": "供应商",
"member": {53 items},
"has_one_card_goods": {6 items}
}
"award": [
{
"积分": 1,
"爱心值": 1
}
]
}
}
返回参数说明:
参数名 |
类型 |
说明 |
result |
int |
0:失败,1:成功 |
msg |
string |
提示消息 |
data |
array |
返回数据 |
返回参数 data 说明:
返回参数 data.card 说明:
参数名 |
类型 |
说明 |
member_id |
是 |
int |
会员ID |
card_avatar |
是 |
string |
头像 |
card_name |
是 |
string |
名字 |
card_mobile |
是 |
int |
手机号码 |
card_wechat |
是 |
sting |
微信号 |
role_id |
是 |
int |
角色id |
introduction |
是 |
sting |
简介 |
voice |
是 |
sting |
声音 |
qr_code |
是 |
sting |
二维码 |
picture |
是 |
sting |
图片 |
province |
是 |
int |
省 |
city |
是 |
int |
市 |
area |
是 |
int |
区 |
street |
是 |
int |
街道 |
address |
是 |
sting |
地址 |
status |
是 |
int |
状态0 关闭 1 开启 |
返回参数 data.status 说明:
参数名 |
类型 |
说明 |
collected |
是 |
int |
被收藏 0:未收藏/1已收藏 |
reliabled |
是 |
int |
被点赞 0:未点赞/1已点赞 |
返回参数 data.achievement 说明:
参数名 |
类型 |
说明 |
count |
是 |
int |
供应商订单数 |
amount |
是 |
int |
供应商订单总额 |
返回参数 data.achievement.visit_statistics 说明:
参数名 |
类型 |
说明 |
visit |
是 |
int |
累计访问次数 |
visitor_num |
是 |
int |
累计访问人数 |
备注: