新版个人中心
1) 请求地址
2) 调用方式:HTTP get
3) 接口描述:
- 原有接口 data->info 下新增:
gift_card,//购物卡数量
money_new_all,//新增字段余额
is_vip,//是否vip
vip_banner,//banner
privilege_list,//特权展示
economy_money,//省多少钱
vip_privilege, //vip特权滚动
like_guess, //猜你喜欢
is_edit_birthday,// 1 没有设置,0已经设置生日4) 请求参数:
5) 请求返回结果:
{
"info":
{
"money_all": 995180.78,
"money_all_format": "99.5万元",
"is_surplus": 0,
"person_info_style": 0,
"real_info_style": 0,
"pay_point_format": "分",
"birthday_format": "2022-01-31",
"rank_next_distance": 1933,
"rank_info": "银牌会员",
"rank_next": "金牌会员",
"rank_image": "\/user\/rank\/2019\/12\/10\/15759742367024.jpg",
"user_money_format": "995180.78",
"user_info":
{
"no_password": false,
"no_surplus_password": false,
"money_all": 0,
"clientRuleCache": "cache"
},
"safe_info":
{
"safe_grade": 2,
"safe_grade_format": "低"
},
"rank_is_special": "0",
"money_new_all": "0.00",
"is_vip": 0,
"edit_birthday_time": "0",
"birthday": "1643587200",
"vip_privilege": ["天天免邮,免邮", "0元领好物,实物实物副标题", "红包专区,红包副标题"],
"pay_point": "3070",
"is_edit_birthday": 0,
"gift_card": 1,
"economy_money": 0,
"privilege_list": [
{
"id": "4",
"name": "天天免邮",
"title": "免邮",
"href": null,
"icon": "\/backend\/gallery\/2021\/09\/06\/16309110907739.png",
"icon_choice": null,
"index": "1"
},
{
"id": "5",
"name": "0元领好物",
"title": "实物实物副标题",
"href": "",
"icon": "\/backend\/gallery\/2021\/09\/06\/16309204734515.gif",
"icon_choice": "\/backend\/gallery\/2021\/11\/24\/16377247564950.png",
"index": "2"
},
{
"id": "9",
"name": "红包专区",
"title": "红包副标题",
"href": "首页跳转地址",
"icon": "\/backend\/gallery\/2021\/09\/06\/16309204734515.gif",
"icon_choice": "\/backend\/gallery\/2021\/09\/06\/16309204734515.gif",
"index": "5"
}],
"vip_banner": [
{
"url": "https:\/\/oss.azmbk.com\/images\/backend\/gallery\/2022\/02\/26\/16458433858635.png",
"address": "\/topic\/1289.html"
},
{
"url": "https:\/\/oss.azmbk.com\/images\/backend\/gallery\/2021\/10\/09\/16337428729961.jpg",
"address": "\/topic\/1288.html"
}],
"like_guess": [
{
"goods_id": "21604",
"goods_name": "阿胶125克",
"goods_image": "\/backend\/gallery\/2020\/07\/28\/15959283741799.jpg",
"goods_price": "32.00",
"market_price": "598.00"
},
{
"goods_id": "4983",
"goods_name": "俪秀仰珠 美丝黄金弹力霜",
"goods_image": "\/shop\/15\/gallery\/2020\/04\/22\/15875489265528.jpg",
"goods_price": "238.00",
"market_price": "238.00"
},
{
"goods_id": "21619",
"goods_name": "福临门 纯正红糖 甘蔗红糖 原蔗熬制 300 中粮出品",
"goods_image": "http:\/\/img11.360buyimg.com\/n1\/jfs\/t1\/74505\/10\/9533\/458461\/5d762457E8a910e00\/999ae8ef94154795.jpg",
"goods_price": "77.00",
"market_price": "55.00"
},
{
"goods_id": "17587",
"goods_name": "肾宝片 0.7克*9片*4板",
"goods_image": "\/shop\/3\/gallery\/2020\/06\/16\/15922982299772.jpg",
"goods_price": "79.92",
"market_price": "99.90"
},
{
"goods_id": "21638",
"goods_name": "龟牌 (Turtle Wax)G-173(3只装) 压边打蜡海绵 掌心海绵 洗车打蜡专用海绵 柔软不伤车漆汽车用品",
"goods_image": "http:\/\/img11.360buyimg.com\/n1\/jfs\/t2863\/12\/1621450146\/151010\/be857e86\/574407e0N4ec896d9.jpg",
"goods_price": "19.00",
"market_price": "19.00"
},
{
"goods_id": "2277",
"goods_name": "伊利金典纯牛奶250ml*12盒\/提易吸收优质蛋白",
"goods_image": "\/shop\/18\/gallery\/2020\/01\/01\/15778628791270.jpg",
"goods_price": "56.00",
"market_price": "65.00"
},
{
"goods_id": "2204",
"goods_name": "敖东 安神补脑液 10ml*10支\/盒 生精补髓 益气养血 强脑安神",
"goods_image": "\/shop\/18\/gallery\/2020\/04\/23\/15876453019760.png",
"goods_price": "19.80",
"market_price": "24.80"
},
{
"goods_id": "2548",
"goods_name": "澳洲玛 维生素C片(无糖型蓝莓味) 22.8g(0.6g\/片*38片)补充维生素C",
"goods_image": "\/shop\/8\/gallery\/2020\/01\/16\/15791670373379.jpg",
"goods_price": "10.00",
"market_price": "39.90"
},
{
"goods_id": "21640",
"goods_name": "圣手三阶魔方 3阶比赛专用儿童男女小孩玩具顺滑实色无贴纸送教程 彩色",
"goods_image": "http:\/\/img11.360buyimg.com\/n1\/jfs\/t1\/104611\/37\/9373\/377248\/5e0d5ea1E67dbe874\/490259986023da06.jpg",
"goods_price": "0.00",
"market_price": "0.00"
},
{
"goods_id": "21642",
"goods_name": "114141",
"goods_image": "\/system\/config\/default_image\/default_goods_image_0.gif",
"goods_price": "1.00",
"market_price": "0.00"
},
{
"goods_id": "21606",
"goods_name": "鑫斛大药房活动专用",
"goods_image": "\/shop\/3\/gallery\/2020\/07\/29\/15959979645221.png",
"goods_price": "30.00",
"market_price": "20.00"
},
{
"goods_id": "16565",
"goods_name": "非无菌型 一次性使用医用口罩 14.5cm*9cm*1个",
"goods_image": "\/shop\/3\/gallery\/2020\/06\/19\/15925512601980.jpg",
"goods_price": "0.60",
"market_price": "1.70"
}]
},
"cart":
{
"111198":
{
"cart_id": "111198",
"user_id": "32630",
"session_id": "0",
"shop_id": "170",
"comstore_id": "0",
"goods_id": "21650",
"sku_id": "22050",
"cart_act_id": null,
"goods_name": "天友核桃花生奶(高纤哈哈)",
"goods_number": "1",
"goods_price": "50.00",
"goods_type": 0,
"parent_id": "0",
"is_gift": "0",
"buyer_type": "0",
"add_time": "1630650623",
"buy_type": "0",
"ext_info": null,
"cart_key": null,
"store_id": "0",
"special_offer": "0",
"basic_goods_name": "天友核桃花生奶(高纤哈哈)",
"vip_discount": "1",
"cat_id": "3301",
"brand_id": "1373",
"goods_sn": "10.02.03.03.09.05",
"goods_status": true,
"goods_audit": "1",
"is_delete": "0",
"goods_image": "\/system\/config\/default_image\/default_goods_image_0.gif",
"goods_images": "a:1:{s:7:\"default\";a:5:{i:0;s:0:\"\";i:1;s:0:\"\";i:2;s:0:\"\";i:3;s:0:\"\";i:4;s:0:\"\";}}",
"give_integral": "0",
"invoice_type": "0",
"stock_mode": "0",
"spu_number": "101",
"contract_ids": null,
"act_id": 0,
"order_act_id": "0",
"goods_moq": "1",
"user_discount": "0",
"sales_model": "0",
"jd_id": "0",
"sku_name": "天友核桃花生奶(高纤哈哈)",
"sku_image": "\/system\/config\/default_image\/default_goods_image_0.gif",
"sku_number": "101",
"market_price": "60.00",
"spec_names": [],
"sku_sn": "10.02.03.03.09.05",
"original_price": "50.00",
"cost_price": "28.00",
"sku_enable": "1",
"cart_step": "1",
"shop_status": "1",
"act_type": null,
"is_cross_border": "0",
"is_prescription_medicine": "0",
"is_hot_medicine": "0",
"generic_name": null,
"drug_specifications": null,
"requency_usage": null,
"unit_name": "瓶",
"comstore_name": null,
"tag_image": null,
"tag_position": null,
"goods_min_number": 1,
"goods_max_number": "101",
"select": 0,
"activity": null,
"order_activity": null,
"prices":
{
"is_original_price": true,
"price_type": "original_price",
"original_price": "50.00",
"activity_price": false,
"member_price": false,
"goods_price": "50.00",
"vip_price": "5.00",
"activity_enable": "0.00"
},
"goods_price_format": "50.00",
"market_price_format": "60.00",
"original_price_format": "50.00"
}
},
"collect":
{
"tab1": [],
"tab2": []
},
"history": [],
"cart_count": 1,
"user_rank":
{
"point_type": 0,
"clientRuleCache": "cache"
},
"no_read_count": "29",
"order_counts":
{
"all": "57",
"unpayed": "0",
"unshipped": "37",
"assign": "37",
"shipped": "0",
"backing": "0",
"unevaluate": "2",
"finished": "3",
"closed": "14",
"cancel": "15"
},
"freebuy_order_counts": "0",
"reachbuy_order_counts": "0",
"progress": 2,
"collect_shop_count": "0",
"collect_goods_count": "0",
"collect_used_count": 0,
"history_count": 0,
"comment_count": "2",
"sys_virtual_enable": 1,
"virtual_order_counts": "0",
"bonus_count": "0",
"shop_info": null,
"is_distrib": "1",
"is_recommend_reg": "1",
"user_center_bgimage": "\/system\/config\/mobile_setting_basic\/m_user_center_bgimage_0.jpg",
"card_count": "0",
"comstore_enable": false,
"recharge_card_enable": "0",
"store_card_enable": 0,
"open_sign_in": "0"
}6) 请求返回结果参数说明:
| 字段名称 | 字段说明 | 类型 | 必填 | 备注 |
|---|---|---|---|---|
| code | string | Y | - | |
| data | string | Y | - | |
| info | string | Y | - | |
| money_all | string | Y | - | |
| money_all_format | string | Y | - | |
| is_surplus | string | Y | - | |
| person_info_style | string | Y | - | |
| real_info_style | string | Y | - | |
| pay_point_format | string | Y | - | |
| birthday_format | string | Y | - | |
| rank_next_distance | string | Y | - | |
| rank_info | string | Y | - | |
| rank_next | string | Y | - | |
| rank_image | string | Y | - | |
| user_money_format | string | Y | - | |
| user_info | string | Y | - | |
| no_password | string | Y | - | |
| no_surplus_password | string | Y | - | |
| clientRuleCache | string | Y | - | |
| safe_info | string | Y | - | |
| safe_grade | string | Y | - | |
| safe_grade_format | string | Y | - | |
| rank_is_special | string | Y | - | |
| new_money_all | string | Y | - | |
| is_vip | string | Y | - | |
| pay_point | string | Y | - | |
| vip_privilege | string | Y | - | |
| economy_money | string | Y | - | |
| privilege_list | string | Y | - | |
| icon | string | Y | - | |
| type | string | Y | - | |
| id | string | Y | - | |
| sub_title | string | Y | - | |
| title | string | Y | - | |
| vip_banner | string | Y | - | |
| url | string | Y | - | |
| address | string | Y | - | |
| cart | string | Y | - | |
| collect | string | Y | - | |
| tab1 | string | Y | - | |
| tab2 | string | Y | - | |
| history | string | Y | - | |
| cart_count | string | Y | - | |
| user_rank | string | Y | - | |
| no_read_count | string | Y | - | |
| order_counts | string | Y | - | |
| all | string | Y | - | |
| unpayed | string | Y | - | |
| unshipped | string | Y | - | |
| assign | string | Y | - | |
| shipped | string | Y | - | |
| backing | string | Y | - | |
| unevaluate | string | Y | - | |
| finished | string | Y | - | |
| closed | string | Y | - | |
| cancel | string | Y | - | |
| virtual_order_counts | string | Y | - | |
| bonus_count | string | Y | - | |
| shop_info | string | Y | - | |
| is_distrib | string | Y | - | |
| is_recommend_reg | string | Y | - | |
| user_center_bgimage | string | Y | - | |
| card_count | string | Y | - | |
| comstore_enable | string | Y | - | |
| recharge_card_enable | string | Y | - | |
| store_card_enable | string | Y | - | |
| open_sign_in | string | Y | - | |
| message | string | Y | - |
文档更新时间: 2022-04-08 17:49 作者:xieyuhua