有伴


获取用户等级

<p><strong>请求URL:</strong> </p> <ul> <li><code>http://wanban.hnpsy.net/api/user.level/userLevel</code></li> </ul> <p><strong>请求方式:</strong></p> <ul> <li>POST </li> </ul> <p><strong>Header:</strong></p> <pre><code>token:a8d69d5683235b607b8711ff06e6c25f source:2 </code></pre> <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;">type</td> <td style="text-align: left;">是</td> <td style="text-align: left;">int</td> <td>type = 1表示用户等级 2 表示vip等级 3表示陪玩等级</td> </tr> <tr> <td style="text-align: left;">uid</td> <td style="text-align: left;">否</td> <td style="text-align: left;">int</td> <td>不传uid表示获取当前登录用户的等级,传uid获取指定的用户等级</td> </tr> </tbody> </table> <p><strong>返回示例</strong></p> <pre><code>{ &amp;quot;code&amp;quot;: 200, &amp;quot;msg&amp;quot;: &amp;quot;获取成功&amp;quot;, &amp;quot;data&amp;quot;: { &amp;quot;id&amp;quot;: 1, &amp;quot;name&amp;quot;: &amp;quot;一级用户&amp;quot;, &amp;quot;number&amp;quot;: 1 } } </code></pre>

页面列表

ITEM_HTML