易优小程序API


会员中心页

<h5>简要描述</h5> <ul> <li>会员中心页接口 <pre><code>该接口仅应用于会员中心页,且具备会员登录功能的小程序,用法请下载Demo示例参考</code></pre></li> </ul> <h5>请求URL</h5> <ul> <li><code>https://您的域名/index.php?m=api&amp;c=v1.Users&amp;a=users_detail&amp;_ajax=1</code></li> </ul> <h5>请求方式</h5> <ul> <li>POST </li> </ul> <h5>示例代码</h5> <pre><code>wx.request({ url: 'https://demo.eyoucms.com/index.php?m=api&amp;c=v1.Users&amp;a=users_detail&amp;_ajax=1', //仅为示例,并非真实的接口地址 data: {}, method: 'POST', header: { 'content-type': 'application/json' // 默认值 }, success (res) { let user_data = res.data; // 返回数据 console.log(res.data) } })</code></pre> <h5>接口测试</h5> <p><a href="http://runapi.showdoc.cc">http://runapi.showdoc.cc</a></p> <h5>返回示例</h5> <pre><code>{ "code": 1, "msg": "success", "time": "1622516600", "data": { "userInfo": { "users_id": 121, "username": "EYC1HUDZ", "password": 1, "nickname": "莫奈的有趣灵魂1", "is_mobile": 0, "mobile": "", "is_email": 0, "email": "", "users_money": "0.00", "frozen_money": "0.00", "scores": 0, "devote": 0, "reg_time": 1622453939, "last_login": 1622516600, "last_ip": "", "login_count": 3, "head_pic": "https://thirdwx.qlogo.cn/mmopen/vi_32/jSDia3ngaRNjdGoqmibO1aet4Xdwt2ibyjeFfibq8X5T7dM1q0aQ4AHqoBSYGH8oib5FMicYUFoo72ogPVNbLR3h9SqQ/132", "province": 0, "city": 0, "district": 0, "level": 1, "open_level_time": 0, "level_maturity_days": "0", "discount": 100, "total_amount": "0.00", "is_activation": 1, "register_place": 2, "open_id": "", "thirdparty": 3, "is_lock": 0, "admin_id": 0, "lang": "cn", "is_del": 0, "unread_notice_num": 0, "update_time": 1611109344, "level_id": 1, "level_name": "注册会员", "level_value": 10, "is_system": 1, "amount": "0.00", "down_count": 1, "posts_count": 5, "ask_is_release": 1, "ask_is_review": 0, "add_time": 0, "level_discount": 100, "maturity_code": 0, "maturity_date": "未升级会员", "address_1588820149": [ ], "address_default_1588820149": [ ] } } }</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;">code</td> <td style="text-align: left;">int</td> <td>状态值,1:成功;0:失败</td> </tr> <tr> <td style="text-align: left;">msg</td> <td style="text-align: left;">string</td> <td>操作说明文案</td> </tr> <tr> <td style="text-align: left;">time</td> <td style="text-align: left;">int</td> <td>返回时间戳</td> </tr> <tr> <td style="text-align: left;">data</td> <td style="text-align: left;">array</td> <td>接口返回的所有数据,参数详情可对应users表查看</td> </tr> </tbody> </table> <h5>备注</h5> <ul> <li>更多api接口持续完善中,欢迎踊跃参与补充与反馈</li> </ul> <p>感谢对易优小程序的支持,交流加QQ好友:1105415366 备注:gitee欢迎使用ShowDoc!</p>

页面列表

ITEM_HTML