大平台——App客户端接口

App接口


商家搜索(2.0)

<p><strong>简要描述:</strong> </p> <ul> <li>商家搜索(2.0)</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>搜索类型 5商家</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>商家类型不用传</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" : "5", "authKey" : "0", "userKey" : "69F90EDCE6F84083E0532E1E1FAC6919", "page":1 }, "modular" : "home", "requestname" : "allHomeSearch", "source" : "1", "version" : "1.5" } </code></pre> <p><strong>返回参数说明</strong> </p> <table> <thead> <tr> <th style="text-align: left;">参数名</th> <th style="text-align: left;">类型</th> <th>说明</th> </tr> </thead> <tbody> <tr> <td style="text-align: left;">count</td> <td style="text-align: left;">String</td> <td>搜索结果列表数</td> </tr> <tr> <td style="text-align: left;">oneList</td> <td style="text-align: left;">String</td> <td>搜索结果列表</td> </tr> <tr> <td style="text-align: left;">shopId</td> <td style="text-align: left;">String</td> <td>商家id</td> </tr> <tr> <td style="text-align: left;">shopName</td> <td style="text-align: left;">String</td> <td>店铺名</td> </tr> <tr> <td style="text-align: left;">logo</td> <td style="text-align: left;">String</td> <td>店铺logo</td> </tr> <tr> <td style="text-align: left;">businessType</td> <td style="text-align: left;">String</td> <td>1外卖 2团购 3拼团 4砍价</td> </tr> <tr> <td style="text-align: left;">goodsCount</td> <td style="text-align: left;">String</td> <td>商品数量</td> </tr> <tr> <td style="text-align: left;">saleCount</td> <td style="text-align: left;">String</td> <td>已售</td> </tr> <tr> <td style="text-align: left;">distance</td> <td style="text-align: left;">String</td> <td>距离</td> </tr> <tr> <td style="text-align: left;">isInScope</td> <td style="text-align: left;">String</td> <td>是否在派送范围内1是0否</td> </tr> <tr> <td style="text-align: left;">isInBusiness</td> <td style="text-align: left;">String</td> <td>是否营业中1是0否</td> </tr> </tbody> </table> <p><strong>返回示例</strong></p> <pre><code>{ "result": { "count": 39, "oneList": [ { "shopId": "6BD25B66880946AFE0532E1E1FACB4D0", "shopName": "小店", "businessType": "2", "goodsCount": "0", "saleCount": "0", "distance": "9.87", "totalRecord": 39, "isInScope": "1", "isInBusiness": "1" }, { "shopId": "69F90EDCE6704083E0532E1E1FAC6919", "shopName": "小希甜点-幸福江阴", "businessType": "1", "goodsCount": "8", "saleCount": "20", "distance": "12.1", "totalRecord": 39, "isInScope": "1", "isInBusiness": "2" }, { "shopId": "69F90EDCE6704083E0532E1E1FAC6919", "shopName": "小希甜点-幸福江阴", "businessType": "2", "goodsCount": "0", "saleCount": "2", "distance": "12.1", "totalRecord": 39, "isInScope": "1", "isInBusiness": "1" }, { "shopId": "6F86F78C73AA132CE0532E1E1FAC60BC", "shopName": "云南普洱孟连ZYL小店", "businessType": "1", "goodsCount": "2", "saleCount": "6", "distance": "24.57", "totalRecord": 39, "isInScope": "1", "isInBusiness": "2" }, { "shopId": "6F86F78C73AA132CE0532E1E1FAC60BC", "shopName": "云南普洱孟连ZYL小店", "businessType": "2", "goodsCount": "6", "saleCount": "1", "distance": "24.57", "totalRecord": 39, "isInScope": "1", "isInBusiness": "1" }, { "shopId": "74797DD4FF0C1577E0532E1E1FAC0F9A", "shopName": "刘先生小店", "businessType": "2", "goodsCount": "0", "saleCount": "0", "distance": "54.77", "totalRecord": 39, "isInScope": "1", "isInBusiness": "1" }, { "shopId": "74797DD4FF0C1577E0532E1E1FAC0F9A", "shopName": "刘先生小店", "businessType": "1", "goodsCount": "0", "saleCount": "0", "distance": "54.77", "totalRecord": 39, "isInScope": "1", "isInBusiness": "2" }, { "shopId": "6F86E4B74AF41317E0532E1E1FAC00CD", "shopName": "钦州小龙虾", "businessType": "1", "goodsCount": "0", "saleCount": "0", "distance": "75.44", "totalRecord": 39, "isInScope": "1", "isInBusiness": "2" }, { "shopId": "6F86E4B74AF41317E0532E1E1FAC00CD", "shopName": "钦州小龙虾", "businessType": "2", "goodsCount": "0", "saleCount": "0", "distance": "75.44", "totalRecord": 39, "isInScope": "1", "isInBusiness": "1" }, { "shopId": "6C384EB54F0F1CDEE0532E1E1FACF9AD", "shopName": "本地小店", "businessType": "1", "goodsCount": "1", "saleCount": "4", "distance": "76.15", "totalRecord": 39, "isInScope": "1", "isInBusiness": "2" }, { "shopId": "6C384EB54F0F1CDEE0532E1E1FACF9AD", "shopName": "本地小店", "businessType": "2", "goodsCount": "2", "saleCount": "1", "distance": "76.15", "totalRecord": 39, "isInScope": "1", "isInBusiness": "1" }, { "shopId": "7270C3149E0F4367E0532E1E1FACF9E6", "shopName": "小绿帽屋", "businessType": "1", "goodsCount": "0", "saleCount": "0", "distance": "80.06", "totalRecord": 39, "isInScope": "1", "isInBusiness": "0" }, { "shopId": "7270C3149E0F4367E0532E1E1FACF9E6", "shopName": "小绿帽屋", "businessType": "2", "goodsCount": "0", "saleCount": "0", "distance": "80.06", "totalRecord": 39, "isInScope": "1", "isInBusiness": "1" }, { "shopId": "79F9936DD0A37F60E0532E1E1FACC35A", "shopName": "美丽小吃", "businessType": "1", "goodsCount": "0", "saleCount": "0", "distance": "99.8", "totalRecord": 39, "isInScope": "1", "isInBusiness": "1" }, { "shopId": "6B9A4730FF320A53E0532E1E1FACA839", "shopName": "张小亮麻辣烫", "businessType": "1", "goodsCount": "0", "saleCount": "0", "distance": "209.86", "totalRecord": 39, "isInScope": "1", "isInBusiness": "2" }, { "shopId": "6B9A4730FF320A53E0532E1E1FACA839", "shopName": "张小亮麻辣烫", "businessType": "2", "goodsCount": "2", "saleCount": "0", "distance": "209.86", "totalRecord": 39, "isInScope": "1", "isInBusiness": "1" }, { "shopId": "6B3B0352EA956899E0532E1E1FACDE8D", "shopName": "汉堡小仔", "businessType": "2", "goodsCount": "0", "saleCount": "0", "distance": "214.77", "totalRecord": 39, "isInScope": "1", "isInBusiness": "1" }, { "shopId": "6B3B0352EA956899E0532E1E1FACDE8D", "shopName": "汉堡小仔", "businessType": "1", "goodsCount": "3", "saleCount": "1", "distance": "214.77", "totalRecord": 39, "isInScope": "1", "isInBusiness": "2" }, { "shopId": "6B9F897CAA10452BE0532E1E1FAC5710", "shopName": "小明便当", "businessType": "1", "goodsCount": "0", "saleCount": "0", "distance": "237.17", "totalRecord": 39, "isInScope": "1", "isInBusiness": "2" }, { "shopId": "6B9F897CAA10452BE0532E1E1FAC5710", "shopName": "小明便当", "businessType": "2", "goodsCount": "2", "saleCount": "0", "distance": "237.17", "totalRecord": 39, "isInScope": "1", "isInBusiness": "1" } ] }, "resultcode": "0", "resultdesc": "success" }</code></pre> <p><strong>备注</strong> </p> <ul> <li>更多返回错误代码请看首页的错误代码描述</li> </ul>

页面列表

ITEM_HTML