登录接口
<p>[TOC]</p>
<h5>简要描述</h5>
<ul>
<li>登录接口</li>
</ul>
<h5>请求URL</h5>
<ul>
<li><code>https://mch-api.yingtuoyu.com/Merchant/Login</code></li>
</ul>
<h5>请求方式</h5>
<ul>
<li>POST </li>
</ul>
<h5>参数</h5>
<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;">mobile</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">string</td>
<td>手机号</td>
</tr>
<tr>
<td style="text-align: left;">password</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">string</td>
<td>密码</td>
</tr>
</tbody>
</table>
<h5>返回示例</h5>
<pre><code> {
&quot;code&quot;: 200,
&quot;message&quot;: &quot;OK&quot;,
&quot;data&quot;: {
&quot;token_type&quot;: &quot;Bearer&quot;,
&quot;expires_in&quot;: 604800,
&quot;access_token&quot;: &quot;eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJ3ZWJtYW4udGlueXdhbi5jbiIsImF1ZCI6IndlYm1hbi50aW55d2FuLmNuIiwiaWF0IjoxNzIyODQ1OTY4LCJuYmYiOjE3MjI4NDU5NjgsImV4cCI6MTcyMzQ1MDc2OCwiZXh0ZW5kIjp7ImlkIjoxLCJzdG9yZV9pZCI6MTA4Miwic2lnbmF0dXJlIjoiNjZhZTBiMzkyZDIwMiJ9fQ.OGvuq-A8xIm8cn3I5uzRE9imz9t38M01zLT4f8pOG1A&quot;,
&quot;refresh_token&quot;: &quot;eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJ3ZWJtYW4udGlueXdhbi5jbiIsImF1ZCI6IndlYm1hbi50aW55d2FuLmNuIiwiaWF0IjoxNzIyODQ1OTY4LCJuYmYiOjE3MjI4NDU5NjgsImV4cCI6MTcyMzQ1MDc2OCwiZXh0ZW5kIjp7ImlkIjoxLCJzdG9yZV9pZCI6MTA4Miwic2lnbmF0dXJlIjoiNjZhZTBiMzkyZDIwMiJ9fQ.FgROmJpHCxiAwHpL9S-eqbaGNlWvoCs38zv0kXN1LPw&quot;,
&quot;info&quot;: {
&quot;store_id&quot;: 1082,
&quot;signature&quot;: &quot;66ae0b392d202&quot;
}
},
&quot;timestamp&quot;: 1722845968
}</code></pre>
<h5>返回参数说明</h5>
<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;">expires_in</td>
<td style="text-align: left;">int</td>
<td>过期时间</td>
</tr>
<tr>
<td style="text-align: left;">access_token</td>
<td style="text-align: left;">string</td>
<td>token</td>
</tr>
<tr>
<td style="text-align: left;">info</td>
<td style="text-align: left;">object</td>
<td></td>
</tr>
<tr>
<td style="text-align: left;">store_id</td>
<td style="text-align: left;">int</td>
<td>商户id</td>
</tr>
<tr>
<td style="text-align: left;">signature</td>
<td style="text-align: left;">string</td>
<td>签名key</td>
</tr>
</tbody>
</table>
<h5>备注</h5>
<ul>
<li>更多返回错误代码请看首页的错误代码描述</li>
</ul>