多应用+插件架构,代码干净,二开方便,首家独创一键云编译技术,文档视频完善,免费商用码云13.8K 广告
[TOC] ### 用户回收站列表 #### URL > web/index.php?c=user&a=display&type=recycle #### 请求方式 > GET #### 请求参数 | 名称 | 类型 | 必填 | 描述 | 值 | | ----------- | :-----: | :-----: | ----------- | | user_type | int | 否 | 用户类型 | 普通用户:1;应用操作员:3 | | expire | int | 否 | 用户是否已到期 | 未过期:1;已过期:2 | | keyword | string | 否 | 关键词 | 用户输入要搜索的用户名或手机号 | | page | int | 否 | 页码 | - | #### 返回数据 ``` { "message": { "errno": 0, "message": { "total": "14", "page": 1, "page_size": 20, "list": [ { "uid": "416", "owner_uid": "0", "groupid": "0", "username": "test124", //用户名 "type": "1", "typename": "普通用户", //用户类型 "status": "2", "joindate": "2019-09-10", //注册时间 "joinip": "172.17.0.1", "lastvisit": "1568102093", "lastip": "172.17.0.1", "remark": "", "starttime": "1568102093", "endtime": "服务已到期", //到期时间 "founder_groupid": "0", "register_type": "0", "openid": "0", "welcome_li<x>nk": "0", "avatar": "./resource/images/nopic-user.png", //用户头像 "module_num": [], "groupname": null }, { "uid": "415", "owner_uid": "0", "groupid": "0", "username": "test123", "type": "1", "typename": "普通用户", "status": "2", "joindate": "2019-09-10", "joinip": "172.17.0.1", "lastvisit": "1568101734", "lastip": "172.17.0.1", "remark": "", "starttime": "1568101734", "endtime": "服务已到期", "founder_groupid": "0", "register_type": "0", "openid": "0", "welcome_li<x>nk": "0", "avatar": "./resource/images/nopic-user.png", "module_num": [], "groupname": null }, { "uid": "25", "owner_uid": "0", "groupid": "4", "username": "donknap", "type": "1", "typename": "普通用户", "status": "2", "joindate": "2014-07-16", "joinip": "127.0.0.1", "lastvisit": "1542695019", "lastip": "127.0.0.1", "remark": "123", "starttime": "1442390021", "endtime": "永久有效", "founder_groupid": "0", "register_type": "0", "openid": "0", "welcome_li<x>nk": "0", "avatar": "http://pros.we7.com/attachment//images/281/2017/01/UitA9YT5aZeuYJjeGGEai6et9Eu63Z.jpg", "module_num": [], "groupname": null } ] } }, "redirect": "", "type": "ajax" } ``` ### 启用用户和删除用户 #### URL > web/index.php?c=user&a=display&do=operate #### 请求方式 > POST #### 请求参数 | 名称 | 类型 | 必填 | 描述 | 值 | | ----------- | :-----: | :-----: | ----------- | | uid | int | 是 | 用户UID | - | | type | string | 是 | 操作类型 | 启用:recycle_restore;删除:recycle_delete | #### 返回数据 正确: ``` { "message": { "errno": 0, "message": "更新成功" }, "redirect": "http://prox.we7.com/./", "type": "ajax" } ``` 错误: ``` { "message": { "errno": -1, "message": "非法操作!" }, "redirect": "http://prox.we7.com/./", "type": "ajax" } ```