艾特机加

后端接口文档


小程序获取当前用户手机号

<p><strong>简要描述:</strong> </p> <ul> <li>小程序一获取当前用户手机号</li> </ul> <p><strong>请求URL:</strong> </p> <ul> <li><code>/public/wx/getwxuserphone</code></li> </ul> <p><strong>请求方式:</strong></p> <ul> <li>GET </li> </ul> <p><strong>参数:</strong> !!! form-data 格式 !!!</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;">code</td> <td style="text-align: left;">是</td> <td style="text-align: left;">string</td> <td>getPhoneNumber 返回的 code(getPhoneNumber 返回的 code 与 wx.login 返回的 code 作用是不一样的)</td> </tr> </tbody> </table> <p><strong>返回示例</strong></p> <pre><code>{ &amp;quot;errcode&amp;quot;:0, &amp;quot;errmsg&amp;quot;:&amp;quot;ok&amp;quot;, &amp;quot;phone_info&amp;quot;: { &amp;quot;phoneNumber&amp;quot;:&amp;quot;xxxxxx&amp;quot;, &amp;quot;purePhoneNumber&amp;quot;: &amp;quot;xxxxxx&amp;quot;, &amp;quot;countryCode&amp;quot;: 86, &amp;quot;watermark&amp;quot;: { &amp;quot;timestamp&amp;quot;: 1637744274, &amp;quot;appid&amp;quot;: &amp;quot;xxxx&amp;quot; } } }</code></pre> <p><strong>返回参数说明</strong> </p>

页面列表

ITEM_HTML