简要描述:

  • 发送名片接口

请求域名:

  • http://xx.com

请求URL:

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

参数:

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

返回示例:

正确时返回:

{
"result": 1,
"msg": "ok",
"data": {
"result": {
"member": {
"center": {
"id": 5,
"uniacid": 5,
"member_id": 77,
"realname": "23",
"mobile": "18025971856",
"bonus_ratio": "10.00",
"level_id": 4,
"is_center": 1,
"created_at": "2018-11-07 18:03:32",
"updated_at": "2019-04-15 14:34:18",
"deleted_at": 0,
"staff_level_id": 0,
"has_one_member": {53 items},
"has_one_level": {
"id": 4,
"uniacid": 5,
"level_name": "区级招商中心",
"level_weight": 1,
"bonus_ratio": "10.00",
"upgrade_type": "1",
"become": "a:1:{i:1;s:4:"1000";}",
"created_at": "2018-10-17 09:51:55",
"updated_at": "2018-10-17 09:51:55",
"deleted_at": 0
},
"has_one_black": null
},

"business_supplier": {
"total": 0,
"per_page": 5,
"current_page": 1,
"last_page": 0,
"next_page_url": null,
"prev_page_url": null,
"from": null,
"to": null,
"data": []
},

"business_store": {
"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": 5,
"thumb": "https://dev1.yunzshop.com/attachment/images/5/2018/07/KqSQseuVWPrzz2JepvVQlpKqWLjQge.png",
"store_name": "测试",
"province_id": 440000,
"city_id": 440100,
"district_id": 440111,
"created_at": "2018-07-25 09:01:17",
"store_id": 5,
"province_name": "广东省",
"city_name": "广州市",
"district_name": "白云区"
}
]
},

"business_hotel": {
"total": 0,
"per_page": 5,
"current_page": 1,
"last_page": 0,
"next_page_url": null,
"prev_page_url": null,
"from": null,
"to": null,
"data": []
},

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

"achievement": {
"count": 1,
"amount": 1600,
"visit_statistics": {
"card_id": 8,
"visit": 1,
"visitor_num": 1
}
}
}
},
"card": {
"id": 8,
"uniacid": 5,
"member_id": 77,
"card_avatar": "https://dev1.yunzshop.com/addons/yun_shop/storage/app/public/business_card/64dbb09d78ad86e3832db9450cdd5ccc_5.png",
"card_name": "卡卡",
"card_mobile": "666",
"card_wechat": "666",
"role_id": 5,
"introduction": "阿斯顿",
"voice": "",
"qr_code": null,
"picture": [],
"areas": [
"北京",
"北京市",
"东城区",
"朝阳门街道"
],
"address": "阿斯顿撒的",
"status": 1,
"created_at": "2019-04-19 16:19:18",
"updated_at": "2019-04-19 16:20:16",
"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 累计访问人数

备注: