主首页搜索结果 (1.5)
<p><strong>简要描述:</strong> </p>
<ul>
<li>主首页搜索结果</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;">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;">searchType</td>
<td style="text-align: left;">否</td>
<td style="text-align: left;">string</td>
<td>搜索类型:0模糊搜索,1店铺名精确搜索, 2外卖类别id精确搜索,3团购类别id精确搜索</td>
</tr>
<tr>
<td style="text-align: left;">searchValue</td>
<td style="text-align: left;">否</td>
<td style="text-align: left;">string</td>
<td>搜索值 (searchType为0、1必填)</td>
</tr>
<tr>
<td style="text-align: left;">typeId</td>
<td style="text-align: left;">否</td>
<td style="text-align: left;">string</td>
<td>类别id (searchType为2、3必填)</td>
</tr>
</tbody>
</table>
<p><strong>请求示例</strong></p>
<pre><code> {
"version": "1.0",
"modular":"home",
"requestname":"mainHomeSearch",
"param": {
"timeStamp": "1506415038551",
"uuid": "dd0bf721-da04-4761-b247-3d6ecd9d9127",
"authKey": "0",
"secretKey": "48EAF3777B978B3542EC09FA3AB4DC38",
"dtype": 4,
"userKey": "5A2522AEA63C0D94E053C208A8C07F8E",
"page": 1,
"custId": "1",
"userLongitude":"120.476844",
"userLatitude":"31.859112",
"search": "cc"
}
}</code></pre>
<p><strong>返回参数说明</strong> </p>
<p>count:团购店铺总记录数
isMoreWShop:是否有更多的外卖商家,1是0否
listW: 外卖搜索homeQuery中oneList结构(可能含twoList中的商品信息)
listT: 团购搜索queryTgBySearchValue中oneList结构
listYX: 团购搜索queryTgBySearchValue中twoList结构</p>
<p><strong>返回示例</strong></p>
<pre><code>{
"result": {
"count": "1",
"isMoreWShop": 0,
"listW": [ {
"shopId": "76AC1C98D2227F73E053161EA8C02D8B",
"longitude": "120.353646",
"latitude": "31.883008",
"isNew": "1",
"dispatchScope": "0",
"isBrand": "0",
"dispatchSpeed": "5",
"dispatchTime": "95",
"shopName": "薛大厨",
"logo": "https://img.91xfcs.com/null?w=140&h=140",
"businessHours": "00:00--00:00",
"businessWeek": "1,2,3,4,5,6,7",
"deliveryType": "0",
"startPrice": "0",
"freight": "0",
"distince": "12438.88",
"iconList": [],
"businessStatus": "1",
"isInBusiness": "1",
"startSend": "",
"avgShopScore": " 4.0",
"sellCount": "3",
"avgPrice": "",
"specialDesc": "",
"tradingArea": "",
"businessHourDesc": "",
"isInArea": "0",
"totalRecord": 1,
"isInScope": 0,
"isInPtScope": 0,
"isInShopScope": 0
}],
"listT": [ {
"shopId": "761EA8FA28E16A1DE053161EA8C01BB0",
"shopName": "薛大厨一号分店",
"shopLogo": "https://img.91xfcs.com/58aa9e023a5f707ed05bdeb03ae4956d?w=140&h=140",
"avgPrice": "0",
"saleCount": 0,
"specialDesc": "小吃|支持外卖",
"tradingArea": "",
"platformStatus": "",
"account": "",
"distince": "79.55",
"typeName": "小吃",
"isTakeAway": "1",
"avgScore": " 4.0",
"totalWeight": "",
"weight": 0,
"goodInfo": [ {
"id": "77B7C7869F6F2453E053161EA8C0AFA6",
"picture": "https://img.91xfcs.com/ce03da2012597c9a598e9527a35bc060?w=60&h=60",
"price": "1",
"faceValue": "50",
"desc": "1123",
"type": "1",
"addTime": ""
}]
}],
"listYX": [
{
"shopId": "76086CAC167C4AEDE053161EA8C0D27E",
"shopName": "阳光小店",
"shopLogo": "",
"avgPrice": "0",
"saleCount": 0,
"specialDesc": "早餐",
"tradingArea": "",
"platformStatus": "",
"account": "",
"distince": "33803.28",
"typeName": "早餐",
"isTakeAway": "0",
"avgScore": " 4.0",
"totalWeight": "",
"weight": 0,
"goodInfo": [ {
"id": "760AE29C95874E39E053161EA8C05661",
"picture": "https://img.91xfcs.com/ce03da2012597c9a598e9527a35bc060?w=60&h=60",
"price": "10",
"faceValue": "999",
"desc": "玫瑰花代金券",
"type": "1",
"addTime": ""
}]
},
{
"shopId": "760A830A128A4CE2E053161EA8C0E79B",
"shopName": "薛大厨饭店",
"shopLogo": "https://img.91xfcs.com/ee80a48a2a72d33c63f4bfe94db47763?w=140&h=140",
"avgPrice": "0",
"saleCount": 0,
"specialDesc": "中餐",
"tradingArea": "",
"platformStatus": "",
"account": "",
"distince": "97.02",
"typeName": "中餐",
"isTakeAway": "0",
"avgScore": " 4.0",
"totalWeight": "",
"weight": 0,
"goodInfo": []
},
{
"shopId": "76086CAC16814AEDE053161EA8C0D27E",
"shopName": "wrq小店",
"shopLogo": "https://img.91xfcs.com/72e882e81e9ef54fe075d54974402fd4?w=140&h=140",
"avgPrice": "0",
"saleCount": 0,
"specialDesc": "中餐",
"tradingArea": "",
"platformStatus": "",
"account": "",
"distince": "563.42",
"typeName": "中餐",
"isTakeAway": "0",
"avgScore": " 4.0",
"totalWeight": "",
"weight": 0,
"goodInfo": []
}
]
},
"resultcode": "0",
"resultdesc": "success"
}
</code></pre>
<p><strong>备注</strong> </p>
<ul>
<li>更多返回错误代码请看首页的错误代码描述</li>
</ul>