大平台——App客户端接口

App接口


跑腿距离和运费(V1.5)

<p><strong>简要描述:</strong> </p> <ul> <li>查询跑腿配送距离和运费</li> </ul> <p><strong>作者:</strong> </p> <ul> <li>赫康(V1.5丁晓忠修改)</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;">longitude</td> <td style="text-align: left;">是</td> <td style="text-align: left;">String</td> <td>发货地址经度</td> </tr> <tr> <td style="text-align: left;">latitude</td> <td style="text-align: left;">是</td> <td style="text-align: left;">string</td> <td>发货地址纬度</td> </tr> <tr> <td style="text-align: left;">bLongitude</td> <td style="text-align: left;">是</td> <td style="text-align: left;">String</td> <td>收货地址经度</td> </tr> <tr> <td style="text-align: left;">bLatitude</td> <td style="text-align: left;">是</td> <td style="text-align: left;">string</td> <td>收货地址纬度</td> </tr> <tr> <td style="text-align: left;">type</td> <td style="text-align: left;">是</td> <td style="text-align: left;">int</td> <td>跑腿类别:1取送件,2代购</td> </tr> </tbody> </table> <p><strong>请求示例</strong></p> <pre><code>{ &amp;quot;modular&amp;quot;: &amp;quot;address&amp;quot;, &amp;quot;param&amp;quot;: { &amp;quot;userKey&amp;quot;: &amp;quot;67A7D8C372BE0F21E0532E1E1FAC8023&amp;quot;, &amp;quot;uuid&amp;quot;: &amp;quot;afb8e574-0332-4f59-be2f-d823fbbb4b76&amp;quot;, &amp;quot;dtype&amp;quot;: &amp;quot;5&amp;quot;, &amp;quot;timeStamp&amp;quot;: &amp;quot;1523154926646&amp;quot;, &amp;quot;authKey&amp;quot;: &amp;quot;0&amp;quot;, &amp;quot;secretKey&amp;quot;: &amp;quot;4CE9A618732F7E8CECA7A5A68D7DFF12&amp;quot;, &amp;quot;longitude&amp;quot;: &amp;quot;103.269841&amp;quot;, &amp;quot;latitude&amp;quot;: &amp;quot;25.566702&amp;quot;, &amp;quot;bLatitude&amp;quot;: &amp;quot;25.562893&amp;quot;, &amp;quot;bLongitude&amp;quot;: &amp;quot;103.253841&amp;quot;, &amp;quot;custId&amp;quot;: &amp;quot;1&amp;quot;, &amp;quot;type&amp;quot;:2 }, &amp;quot;requestname&amp;quot;: &amp;quot;querydistance&amp;quot;, &amp;quot;version&amp;quot;: &amp;quot;1.0&amp;quot; }</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;">ptFreight</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> </tbody> </table> <p><strong>返回示例</strong></p> <pre><code>{ &amp;quot;result&amp;quot;: { &amp;quot;distance&amp;quot;: &amp;quot;1.6&amp;quot;, &amp;quot;ptFreight&amp;quot;: &amp;quot;5&amp;quot;, &amp;quot;firstPriceScheme&amp;quot;: &amp;quot;5000,500;10000,100;20000,200;30000,300&amp;quot;, &amp;quot;secondPriceScheme&amp;quot;: &amp;quot;5000,500;10000,100;20000,200;30000,300&amp;quot;, &amp;quot;priceType&amp;quot;: &amp;quot;1&amp;quot; }, &amp;quot;resultcode&amp;quot;: &amp;quot;0&amp;quot;, &amp;quot;resultdesc&amp;quot;: &amp;quot;success&amp;quot; }</code></pre> <p><strong>备注</strong> </p> <ul> <li>更多返回错误代码请看首页的错误代码描述</li> </ul>

页面列表

ITEM_HTML