简要描述:

  • 发送名片接口

请求域名:

  • http://xx.com

请求URL:

POST:plugin.business-card.frontend.controllers.card.card.sendCardByRoleId

参数:

参数名 是否必须 类型 说明
card_id 名片id

返回示例:

正确时返回:

{
"result": 1,
"msg": "ok",
"data": {
"result": {
"member": {
"staff": {
"id": 9,
"uniacid": 5,
"member_id": 95,
"realname": "Joy",
"mobile": "15219025049",
"bonus_ratio": "10.00",
"level_id": 0,
"is_center": 0,
"created_at": "2019-02-13 15:37:43",
"updated_at": "2019-04-18 12:54:49",
"deleted_at": 0,
"staff_level_id": 1,
"has_one_member": {53 items},
"has_one_level": null,
"has_one_black": null,
"has_one_staff_level": {
"id": 1,
"level_name": "区级招商员",
"bonus_ratio": "10.00",
"goods": ""
}
},

"business_supplier": {
"total": 1,
"per_page": 5,
"current_page": 1,
"last_page": 1,
"next_page_url": null,
"prev_page_url": null,
"from": 1,
"to": 1,
"data": [
{
"id": 12,
"logo": "images/5/2018/12/DokqFPk4464K378lRqPosQ7Zz3ze34.jpg",
"store_name": "null",
"province_name": "",
"city_name": "",
"district_name": "",
"created_at": "2018-12-27 13:51:43",
"supplier_id": 12
}
]
},

"business_store": {
"total": 3,
"per_page": 5,
"current_page": 1,
"last_page": 1,
"next_page_url": null,
"prev_page_url": null,
"from": 1,
"to": 3,
"data": [
{
"id": 21,
"thumb": "https://dev1.yunzshop.com/addons/yun_shop/storage/app/avatars/store_applyPFAh9RiyWL",
"store_name": "111",
"province_id": 440000,
"city_id": 440100,
"district_id": 440111,
"created_at": "2019-04-08 09:48:25",
"store_id": 21,
"province_name": "广东省",
"city_name": "广州市",
"district_name": "白云区"
},
{
"id": 20,
"thumb": "https://dev1.yunzshop.com/addons/yun_shop/storage/app/avatars/store_apply0CL4szFP1G",
"store_name": "EUK404",
"province_id": 440000,
"city_id": 440100,
"district_id": 440111,
"created_at": "2019-04-08 09:33:54",
"store_id": 20,
"province_name": "广东省",
"city_name": "广州市",
"district_name": "白云区"
},
{
"id": 18,
"thumb": "https://dev1.yunzshop.com/addons/yun_shop/storage/app/avatars/store_apply6aGYMcQsJU",
"store_name": "草莓牛奶",
"province_id": 440000,
"city_id": 440100,
"district_id": 440111,
"created_at": "2019-04-03 09:45:03",
"store_id": 18,
"province_name": "广东省",
"city_name": "广州市",
"district_name": "白云区"
}
]
},

"business_hotel": {
"total": 1,
"per_page": 5,
"current_page": 1,
"last_page": 1,
"next_page_url": null,
"prev_page_url": null,
"from": 1,
"to": 1,
"data": [
{
"id": 2,
"thumb": "https://dev1.yunzshop.com/attachment/images/5/2019/04/HMieHSu4sE9eYc22zbeQSUSFt6eEBQ.jpg",
"hotel_name": "4234",
"province_id": 440000,
"city_id": 440100,
"district_id": 440111,
"created_at": "2019-04-12 09:24:42",
"hotel_id": 2,
"province_name": "广东省",
"city_name": "广州市",
"district_name": "白云区",
"store_name": "4234"
}
]
},

"status": {
"collected": 0,
"reliabled": 0
},

"achievement": {
"count": 5,
"amount": 3155.02,
"visit_statistics": {
"card_id": 5,
"visit": 0,
"visitor_num": 0
}
}
}
},
"card": {
"id": 5,
"uniacid": 5,
"member_id": 95,
"card_avatar": "https://dev1.yunzshop.com/addons/yun_shop/storage/app/public/business_card/30bea1acf41d50d6665fd07427a8381b_5.png",
"card_name": "Joy",
"card_mobile": "",
"card_wechat": "",
"role_id": 4,
"introduction": "",
"voice": "",
"qr_code": null,
"picture": "a:0:{}",
"areas": "a:4:{i:0;i:110000;i:1;i:110100;i:2;i:110101;i:3;i:110101007;}",
"address": null,
"status": 1,
"created_at": "2019-04-19 10:06:52",
"updated_at": "2019-04-19 10:07:14",
"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.member.business_supplier(商家-供应商) 说明:

参数名 类型 说明

返回参数 data.member.business_store(商家-酒店) 说明:

参数名 类型 说明

返回参数 data.member.business_hotel(商家-门店) 说明:

参数名 类型 说明

返回参数 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 累计访问人数

备注: