Showing
1 changed file
with
40 additions
and
0 deletions
@@ -2784,4 +2784,44 @@ code为200即为成功,否则是失败。 | @@ -2784,4 +2784,44 @@ code为200即为成功,否则是失败。 | ||
2784 | "md5": "d4fb7018f27973c1f00ebaae579c02c7", | 2784 | "md5": "d4fb7018f27973c1f00ebaae579c02c7", |
2785 | "message": "product brandshop Intro" | 2785 | "message": "product brandshop Intro" |
2786 | } | 2786 | } |
2787 | +``` | ||
2788 | +## 16、pc端品牌页面跳转接口,根据domain查找shop_id## | ||
2789 | + | ||
2790 | +(method=web.brand.byDomain) | ||
2791 | +#### 请求参数 | ||
2792 | +| 参数名称 | 参数类型 | 可否为空 | 示例 | 默认值 | 备注 | | ||
2793 | +|:-------| -----:|-----:|-----:|-----:|----:| | ||
2794 | +|domain|string|否|andybrier|无|品牌domain| | ||
2795 | + | ||
2796 | +品牌店铺需求,品牌上增加用于跳转的枚举值type: | ||
2797 | +无店铺:0--->品牌页 | ||
2798 | +无单品店有多品店:1--->搜索页 | ||
2799 | +有单品店:2--->店铺页面 | ||
2800 | +请求示例 | ||
2801 | +http://127.0.0.1:8080/gateway/?method=web.brand.byDomain&v=7&domain=andybrier&debug=XYZ | ||
2802 | + | ||
2803 | +### 响应 | ||
2804 | +code为200即为成功,否则是失败。 | ||
2805 | +响应JSON格式如下所示: | ||
2806 | +```json | ||
2807 | +{ | ||
2808 | + "alg": "SALT_MD5", | ||
2809 | + "code": 200, | ||
2810 | + "data": { | ||
2811 | + "brandAlif": "", | ||
2812 | + "brand_banner": "http:///brandBanner?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/90", | ||
2813 | + "brand_domain": "andybrier", | ||
2814 | + "brand_ico": "http://img11.static.yhbimg.com/brandLogo/2016/03/30/13/0156cf0bd45269093a4d7a027ae36baefc.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/90", | ||
2815 | + "brand_intro": "", | ||
2816 | + "brand_name": "张春华的品牌", | ||
2817 | + "brand_name_cn": "张春华品牌1", | ||
2818 | + "brand_name_en": "Andybrier", | ||
2819 | + "id": 1565, | ||
2820 | + "shop_id": "646", | ||
2821 | + "static_content_code": "", | ||
2822 | + "type": "2" | ||
2823 | + }, | ||
2824 | + "md5": "f8692bb0985d7b3be92150b503ab5159", | ||
2825 | + "message": "brand info" | ||
2826 | +} | ||
2787 | ``` | 2827 | ``` |
-
Please register or login to post a comment