艾特机加

后端接口文档


小程序登录

<p><strong>接口描述:</strong></p> <ul> <li><a href="http://localhost:8060/apiweb/public/wx/getwxuseropenid?jsCode=yuuiooowppp8788334455">http://localhost:8060/apiweb/public/wx/getwxuseropenid?jsCode=yuuiooowppp8788334455</a> 微信获取oppenId</li> </ul> <p><strong>请求URL:</strong></p> <ul> <li><code>/public/wx/getwxuseropenid</code></li> </ul> <p><strong>请求方式:</strong></p> <ul> <li>GET</li> </ul> <p><strong>请求参数:form-data格式</strong></p> <table> <thead> <tr> <th style="text-align: left;">字段</th> <th style="text-align: left;">类型</th> <th style="text-align: left;">描述</th> <th style="text-align: left;">必填</th> </tr> </thead> <tbody> <tr> <td style="text-align: left;">jsCode</td> <td style="text-align: left;">string</td> <td style="text-align: left;">微信提供的code</td> <td style="text-align: left;">是</td> </tr> </tbody> </table> <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> </tr> </thead> <tbody> <tr> <td style="text-align: left;">code</td> <td style="text-align: left;">int</td> <td style="text-align: left;">响应代码</td> </tr> <tr> <td style="text-align: left;">message</td> <td style="text-align: left;">string</td> <td style="text-align: left;">响应描述</td> </tr> <tr> <td style="text-align: left;">data</td> <td style="text-align: left;">json</td> <td style="text-align: left;">业务数据</td> </tr> </tbody> </table> <p><strong>响应data参数:</strong></p> <table> <thead> <tr> <th style="text-align: left;">字段</th> <th style="text-align: left;">类型</th> <th style="text-align: left;">说明</th> </tr> </thead> <tbody> </tbody> </table> <p><strong>请求示例</strong></p> <pre><code>http://localhost:8060/apiweb/public/wx/getwxuseropenid?jsCode=yuuiooowppp8788334455</code></pre> <p><strong>响应示例</strong></p> <pre><code>{ &amp;quot;code&amp;quot;: 200, &amp;quot;message&amp;quot;: &amp;quot;SUCCESS&amp;quot;, &amp;quot;data&amp;quot;: { &amp;quot;openid&amp;quot;:&amp;quot;xxxxxx&amp;quot;, &amp;quot;session_key&amp;quot;:&amp;quot;xxxxx&amp;quot;, &amp;quot;unionid&amp;quot;:&amp;quot;xxxxx&amp;quot;, &amp;quot;errcode&amp;quot;:0, &amp;quot;errmsg&amp;quot;:&amp;quot;xxxxx&amp;quot; } }</code></pre> <p><strong>备注</strong></p> <ul> <li>更多返回错误代码请看首页的错误代码描述</li> </ul> <p>欢迎使用ShowDoc!</p>

页面列表

ITEM_HTML