简要描述:

  • 发送名片接口

请求域名:

  • http://xx.com

请求URL:

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

参数:

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

返回示例:

正确时返回:

{
"result": 1,
"msg": "ok",
"data": {
"result": {
"member": {
"shop_owner": {
"id": 7,
"uniacid": 5,
"uid": 95,
"store_name": "卡卡",
"thumb": "https://dev1.yunzshop.com/attachment/images/5/2018/07/KqSQseuVWPrzz2JepvVQlpKqWLjQge.png",
"category_id": 3,
"province_id": 440000,
"city_id": 440100,
"district_id": 440111,
"street_id": 440111002,
"address": "12",
"longitude": "131",
"latitude": "23",
"mobile": "15219025049",
"store_introduce": "1221",
"username": "",
"password": "123456",
"template_id": "",
"salers": "a:1:{i:169;a:4:{s:6:"openid";s:28:"onBsewv8515KmGF0odOhhPsDkj8g";s:8:"nickname";s:0:"";s:6:"avatar";s:134:"http://thirdwx.qlogo.cn/mmopen/A6RtV0R3VZ9ibHSrGggzS80hNF2aDROSjjqicKMQre9xmKnAYpicpGxL8clOhht4xFWz5MgmB6IcV9yBhjX30hDxdI4XEMa9VFY/132";s:3:"uid";s:3:"169";}}",
"cashier_id": 85,
"created_at": "2018-08-14 11:14:28",
"updated_at": "2019-04-17 11:36:49",
"deleted_at": null,
"business_hours_start": "",
"business_hours_end": "",
"aptitude_imgs": null,
"dispatch_type": [
"1",
"2",
"3"
],
"affiche": "1212",
"user_uid": 22,
"information": "",
"is_black": 0,
"banner_thumb": "https://dev1.yunzshop.com/attachment/images/5/2018/08/Wajr9ar6LbtJjIQ76qT9q6tQorBJ9T.png",
"is_hide": 0,
"specify_show": 0,
"operating_state": 0,
"boss_uid": 0,
"audio_open": 0,
"initials": "G",
"validity": 1,
"validity_status": 0,
"full_address": "广东省 广州市 白云区 12",
"dispatch": "支持快递、自提、核销、",
"average_score": 0,
"order_total": 181
},
"goods": [4 items],

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

"coupon": [
{
"id": 22,
"name": "优惠卷测试2",
"coupon_method": 1,
"deduct": "20.00",
"discount": "0.00",
"enough": 100,
"get_max": 1,
"receive_count": 1,
"available_count": 0,
"received": 1
},
{
"id": 21,
"name": "优惠卷测试1",
"coupon_method": 1,
"deduct": "10.00",
"discount": "0.00",
"enough": 100,
"get_max": 1,
"receive_count": 1,
"available_count": 0,
"received": 1
}
],

"achievement": {
"count": 9,
"amount": "870.00",
"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": 8,
"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:17:21",
"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 累计访问人数

返回参数 data.coupon (优惠卷) 说明:

参数名 类型 说明
name str 优惠券名称
coupon_method int 优惠方式: 1为立减deduct, 2为折扣discount
deduct int 立减多少元(注意,coupon_method为1时,该数据才有意义)
discount float 折扣(注意,coupon_method为2时,该数据才有意义; 例子:7表示打7折,即原价的0.7倍)
enough int 消费满多少元, 优惠券才可用(空或0为不限制)
get_max int 每人限领的上限
receive_count int 已领取张数
available_count int 可领取张数
received int 是否领取过 1:领取过/2:未领取过

备注: