大平台——App客户端接口

App接口


各首页搜索结果 (2.5)

<p><strong>简要描述:</strong> </p> <ul> <li>各首页搜索结果 (2.5) </li> </ul> <p><strong>作者:</strong> </p> <ul> <li>梁志杰</li> </ul> <p><strong>请求URL:</strong> </p> <ul> <li><code>xtwl_read_interface/cmd</code></li> </ul> <p><strong>请求方式:</strong></p> <ul> <li>POST </li> </ul> <p><strong>参数:</strong> </p> <table> <thead> <tr> <th style="text-align: left;">参数名</th> <th style="text-align: left;">必选</th> <th style="text-align: left;">类型</th> <th>说明</th> </tr> </thead> <tbody> <tr> <td style="text-align: left;">stype</td> <td style="text-align: left;">是</td> <td style="text-align: left;">string</td> <td>搜索类型 0主首页 1外卖 2团购 3拼团 4砍价 5商家 6优选</td> </tr> <tr> <td style="text-align: left;">custId</td> <td style="text-align: left;">是</td> <td style="text-align: left;">string</td> <td>客户id</td> </tr> <tr> <td style="text-align: left;">userLongitude</td> <td style="text-align: left;">是</td> <td style="text-align: left;">string</td> <td>用户经度</td> </tr> <tr> <td style="text-align: left;">userLatitude</td> <td style="text-align: left;">是</td> <td style="text-align: left;">string</td> <td>用户纬度</td> </tr> <tr> <td style="text-align: left;">page</td> <td style="text-align: left;">是</td> <td style="text-align: left;">string</td> <td>页数</td> </tr> <tr> <td style="text-align: left;">searchValue</td> <td style="text-align: left;">否</td> <td style="text-align: left;">string</td> <td>搜索值</td> </tr> <tr> <td style="text-align: left;">sort</td> <td style="text-align: left;">否</td> <td style="text-align: left;">string</td> <td>0综合1评分最高2起送最低3配送最低4销量最高5距离最近6价格最低7价格最高 (主首页、团购、商家不用传;外卖有传0 1 2 3 4 5;拼团、砍价传0 4 5;优选传4 6 7)</td> </tr> </tbody> </table> <p><strong>请求示例</strong></p> <pre><code>{ "param" : { "custId" : "D78AEA3418834147BE226395B0309642", "userLongitude" : "120.482513", "searchValue" : "小", "dtype" : "4", "timeStamp" : "1544695085530", "uuid" : "3c980291-389b-4c80-a0c6-18909d4719a9", "secretKey" : "1FF3BAB24BB9A2C6D8045C6650EF6181", "userLatitude" : "31.861510", "stype" : "0", "authKey" : "0", "userKey" : "69F90EDCE6F84083E0532E1E1FAC6919" }, "modular" : "home", "requestname" : "allHomeSearch", "source" : "1", "version" : "1.5" } </code></pre> <p><strong>返回参数说明</strong> </p> <p>count:搜索记录数量 isMoreWShop:是否有更多的外卖商家,1是0否(产品说2.0版本主首页搜索结果每个业务最多显示3条数据) isMoreTShop:是否有更多的团卖商家,1是0否 isMorePShop:是否有更多的拼卖商家,1是0否 isMoreKShop:是否有更多的砍卖商家,1是0否 isMoreSShop:是否有更多商家,1是0否 isMoreYXGoods:是否有更多优选商品,1是0否 isMoreRWShop:是否有更多的推荐外卖商家,1是0否 isMoreRTShop:是否有更多的推荐团卖商家,1是0否 isMoreRPShop:是否有更多的推荐拼卖商家,1是0否 isMoreRKShop:是否有更多的推荐砍卖商家,1是0否 isMoreRYXGoods:是否有更多的推荐优选商品,1是0否 isOpenRun:是否开通跑腿,1是0否(2.5) listW: 外卖搜索homeQuery中oneList结构(可能含twoList中的商品信息) listT: 团购搜索queryTgBySearchValue中oneList结构 listP: 拼团搜索(结构参考拼团首页搜索(2.0)里的oneList) listK: 拼团搜索(结构参考砍价首页搜索(2.0)里的oneList) listS: 商家搜索(结构参考商家搜索(2.0)里的oneList) listYXGoods:优选搜索(结构参考优选首页搜索里的oneList) listRW: 外卖推荐商家(结构参考homeQuery中twoList) listRT: 团购推荐商家(结构参考queryTgBySearchValue中twoList) listRP: 拼团推荐商品(结构参考拼团首页搜索(2.0)里的twoList) listRK: 砍价推荐商品(结构参考砍价首页搜索(2.0)里的twoList) listRYXGoods:优选推荐商品(结构参考优选首页搜索里的twoList) isInvoicing: 是否支持开票 <strong>5.5</strong></p> <p><strong>返回示例</strong></p> <pre><code>{ "result": { "count": 11, "isMoreWShop": 1, "isMoreTShop": 1, "isMorePShop": 0, "isMoreKShop": 0, "isMoreSShop": 1, "isMoreYXGoods":0, "isOpenRun": 1, "listW": [ { "shopId": "69F90EDCE6704083E0532E1E1FAC6919", "longitude": "120.482613", "latitude": "31.861578", "isNew": "0", "dispatchScope": "0", "isBrand": "0", "shopName": "小希甜点-幸福江阴", "logo": "https://bsimg.58xfcs.com/7d69be87d519a63eb935cf1de7f403b3?w=140&amp;h=140", "businessHours": "06:00--07:00,08:00--23:00", "businessWeek": "2,3,4,5,6,7,1", "deliveryType": "1", "startPrice": "0", "freight": "0", "distince": "12.1", "iconList": [], "businessStatus": "1", "isInBusiness": "1", "startSend": "", "avgShopScore": " 5.0", "sellCount": "20", "avgPrice": "", "specialDesc": "", "tradingArea": "", "businessHourDesc": "", "platformStatus": "1", "isInArea": "1", "totalRecord": 17, "isInScope": 1, "isInPtScope": 1, "isInShopScope": 0, "makeTime": "15", "shopTypeName": "快餐" }, { "shopId": "6CE9ADBEA9B8388CE0532E1E1FACAED6", "longitude": "120.466805", "latitude": "31.839415", "isNew": "0", "dispatchScope": "5000", "isBrand": "0", "dispatchSpeed": "10", "dispatchTime": "65.0", "shopName": "美丽小铺美丽小铺", "logo": "https://bsimg.58xfcs.com/9655f277b17ddebb784109720024930c?w=140&amp;h=140", "businessHours": "04:00--23:00", "businessWeek": "2,3,4,5,6,7", "deliveryType": "1", "startPrice": "0", "freight": "0", "distince": "2870.18", "iconList": [], "businessStatus": "1", "isInBusiness": "1", "startSend": "", "avgShopScore": " 5.0", "sellCount": "13", "avgPrice": "", "specialDesc": "", "tradingArea": "", "businessHourDesc": "", "platformStatus": "1", "isInArea": "1", "totalRecord": 17, "isInScope": 1, "isInPtScope": 1, "isInShopScope": 0, "makeTime": "15", "shopTypeName": "快餐,便当" }, { "shopId": "6F86F78C73AA132CE0532E1E1FAC60BC", "longitude": "120.482281", "latitude": "31.86141", "isNew": "0", "dispatchScope": "0", "isBrand": "0", "shopName": "云南普洱孟连ZYL小店", "logo": "https://bsimg.58xfcs.com/616db0148c16f6db02349f78b0931251?w=140&amp;h=140", "businessHours": "06:00--06:00", "businessWeek": "1,2,3,4,5,6,7", "deliveryType": "1", "startPrice": "15", "freight": "3", "distince": "24.57", "iconList": [], "businessStatus": "1", "isInBusiness": "1", "startSend": "", "avgShopScore": " 5.0", "sellCount": "6", "avgPrice": "", "specialDesc": "", "tradingArea": "", "businessHourDesc": "", "platformStatus": "1", "isInArea": "1", "totalRecord": 17, "isInScope": 1, "isInPtScope": 1, "isInShopScope": 0, "makeTime": "15", "shopTypeName": "牛奶,可乐" } ], "listT": [ { "shopId": "6CE9ADBEA9B8388CE0532E1E1FACAED6", "shopName": "美丽小铺美丽小铺", "shopLogo": "https://bsimg.58xfcs.com/9655f277b17ddebb784109720024930c?w=140&amp;h=140", "avgPrice": "111", "saleCount": 0, "specialDesc": "无辣不欢|111|支持外卖", "tradingArea": "111", "platformStatus": "", "account": "", "distince": "2870.18", "typeName": "无辣不欢", "isTakeAway": "1", "avgScore": " 5.0", "totalWeight": "", "weight": 0, "goodInfo": [ { "id": "6CF5FCC779DB4E7EE0532E1E1FAC5663", "picture": "https://bsimg.58xfcs.com/ce03da2012597c9a598e9527a35bc060?w=60&amp;h=60", "price": "1", "faceValue": "123456", "desc": "玫瑰花代金券", "type": "1", "addTime": "" }, { "id": "73FF951D6AFA2644E0532E1E1FAC0CE9", "picture": "https://bsimg.58xfcs.com/ce03da2012597c9a598e9527a35bc060?w=60&amp;h=60", "price": "1", "faceValue": "12345", "desc": "哈哈哈好好", "type": "1", "addTime": "" }, { "id": "726F9DCF62293B06E0532E1E1FACF4E1", "picture": "https://bsimg.58xfcs.com/c02f85127d5e7996283e11e2dc698d8a?w=60&amp;h=60", "price": "0.02", "faceValue": "9.99", "desc": "家居解决2555", "type": "2", "addTime": "" } ], "totalRecord": 23 }, { "shopId": "6B9F897CAA10452BE0532E1E1FAC5710", "shopName": "小明便当", "shopLogo": "https://bsimg.58xfcs.com/0bee63112bc511ff485059f40f5d7164?w=140&amp;h=140", "avgPrice": "18", "saleCount": 0, "specialDesc": "快餐|节假日通用|支持外卖", "tradingArea": "华士", "platformStatus": "", "account": "", "distince": "237.17", "typeName": "快餐", "isTakeAway": "1", "avgScore": " 5.0", "totalWeight": "", "weight": 0, "goodInfo": [ { "id": "6B9F897CAA47452BE0532E1E1FAC5710", "picture": "https://bsimg.58xfcs.com/ce03da2012597c9a598e9527a35bc060?w=60&amp;h=60", "price": "16", "faceValue": "20", "desc": "20元代金券", "type": "1", "addTime": "" }, { "id": "6B9F16460B644515E0532E1E1FACB7DF", "picture": "https://bsimg.58xfcs.com/c02f85127d5e7996283e11e2dc698d8a?w=60&amp;h=60", "price": "20", "faceValue": "45", "desc": "人气套餐", "type": "2", "addTime": "" } ], "totalRecord": 23 }, { "shopId": "69F90EDCE6894083E0532E1E1FAC6919", "shopName": "美丽小铺", "shopLogo": "https://bsimg.58xfcs.com/b514197a3bce94f54269bcf9f98f31ec?w=140&amp;h=140", "avgPrice": "99", "saleCount": 0, "specialDesc": "绿植|支持退款|支持外卖", "tradingArea": "江阴华士镇", "platformStatus": "", "account": "", "distince": "3840.94", "typeName": "绿植", "isTakeAway": "1", "avgScore": " 5.0", "totalWeight": "", "weight": 0, "goodInfo": [ { "id": "69F91956141D4096E0532E1E1FAC0D51", "picture": "https://bsimg.58xfcs.com/ce03da2012597c9a598e9527a35bc060?w=60&amp;h=60", "price": "1", "faceValue": "50", "desc": "玫瑰花礼盒代金券", "type": "1", "addTime": "" }, { "id": "69F90EDCE6F44083E0532E1E1FAC6919", "picture": "https://bsimg.58xfcs.com/c02f85127d5e7996283e11e2dc698d8a?w=60&amp;h=60", "price": "0.01", "faceValue": "39.98", "desc": "超值丁香花团购套餐", "type": "2", "addTime": "" }, { "id": "69F90EDCE6FA4083E0532E1E1FAC6919", "picture": "https://bsimg.58xfcs.com/c02f85127d5e7996283e11e2dc698d8a?w=60&amp;h=60", "price": "0.01", "faceValue": "29.86", "desc": "满天星团购套餐", "type": "2", "addTime": "" } ], "totalRecord": 23 } ], "listP": [ { "shopId": "69F90EDCE6894083E0532E1E1FAC6919", "goodId": "1", "singlePrice": "3", "groupPrice": "2", "groupNumber": "3", "quantity": "9", "remainTime": "519297999.999999999999999999999999999998", "goodName": "厕所5", "goodPicture": "https://bsimg.58xfcs.com/https://bsimg.58xfcs.com/1,2,3?p=0?p=0", "distance": "3840.94", "isIntegral": "1", "isCoupon": "0", "isSelect": "0", "isInBusiness": "2", "totalRecord": 2, "deliveryType": "1", "firstType": "3F480089909A48E381BF93B0D6FD047F", "secondType": "7A9BD41A42446057E053191EA8C05D28", "thirdType": "7A9BD41A42436057E053191EA8C05D28", "shopType": "7B132A385E164544E053191EA8C0D94B" }, { "shopId": "69F90EDCE6894083E0532E1E1FAC6919", "goodId": "2", "singlePrice": "2", "groupPrice": "1", "groupNumber": "7", "quantity": "6", "remainTime": "519297999.999999999999999999999999999998", "goodName": "2018新产东北大枣又大又甜甜大枣\n", "goodPicture": "https://bsimg.58xfcs.com/https://bsimg.58xfcs.com/1?p=0?p=0", "distance": "3840.94", "isIntegral": "1", "isCoupon": "0", "isSelect": "0", "isInBusiness": "2", "totalRecord": 2, "deliveryType": "1", "firstType": "3F480089909A48E381BF93B0D6FD047F", "secondType": "7A9BD41A42446057E053191EA8C05D28", "thirdType": "7A9BD41A42436057E053191EA8C05D28", "shopType": "7B132A385E164544E053191EA8C0D94B" } ], "listK": [ { "shopId": "69F90EDCE6894083E0532E1E1FAC6919", "goodId": "1", "singlePrice": "10000", "groupPrice": "6666.66", "groupNumber": "112", "quantity": "0", "goodName": "2018新产东北大枣又大又甜甜大枣\n\n北大枣又大又甜大枣", "goodPicture": "https://bsimg.58xfcs.com/https://bsimg.58xfcs.com/1,2,3?p=0?p=0", "distance": "3840.94", "isIntegral": "1", "isCoupon": "0", "isSelect": "0", "isInBusiness": "2", "totalRecord": 1, "firstType": "7A9BD41A42416057E053191EA8C05D28", "secondType": "DA9BD41A42416057E053191EA8C05D28", "thirdType": "DRRBD41A42416057E053191EA8C05D28", "shopType": "7A9BD41A42426057E053191EA8C05D28" }], "listS": [ { "shopId": "6BD25B66880946AFE0532E1E1FACB4D0", "shopName": "小店", "businessType": "2", "goodsCount": "47", "distance": "9.87", "totalRecord": 17738, "isInScope": "1", "isInBusiness": "1" }, { "shopId": "6BD25B66880946AFE0532E1E1FACB4D0", "shopName": "小店", "businessType": "2", "goodsCount": "44", "distance": "9.87", "totalRecord": 17738, "isInScope": "1", "isInBusiness": "1" }, { "shopId": "6BD25B66880946AFE0532E1E1FACB4D0", "shopName": "小店", "businessType": "2", "goodsCount": "39", "distance": "9.87", "totalRecord": 17738, "isInScope": "1", "isInBusiness": "1" } ], "listYXGoods":[] }, "resultcode": "0", "resultdesc": "success" } </code></pre> <p><strong>备注</strong> </p> <ul> <li>更多返回错误代码请看首页的错误代码描述</li> </ul>

页面列表

ITEM_HTML