ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
# 用户(代理商)管理 登录服务商 ``` <pre class="calibre11">``` post:api/user/login *string:phone=默认值#代理商手机号 *string:password=默认值#登录密码(明文) *inter:permission=1#获取权限集合 <<< success { 'status' :'1', 'message' : '登录成功', 'data' :{ 'token' : '', 'user_id' :1, 'user_name' : 代理商名称, 'name' : 姓名, 'phone' :手机号, 'pid' : 父id, 'level' : 等级, 's_code' : '', 'config_id' : '' } } <<< error { message:"账号密码不正确!" status:"2" } ``` ``` - - - - - - 获取代理商列表 ``` <pre class="calibre13">``` post:/api/user/get_sub_users *string:token=默认值#用户登录令牌 user_id=默认值#登录者id self=false#是否包含自己:true包含、false不包含 return_type=layui#返回数据类型 user_name=默认值#用户名 sub_type=默认值# level=默认值#等级 display=false#显示完整手机号 <<< success { data: { 0: { address: "北京" area_name: "邢台县" city_name: "邢台市" config_id: "1234" created_at: "2018-06-09 00:00:00" email: "18851186770@qq.com" id: 1 is_admin: "0" is_delete: "0" level: "0" level_name: "平台账户" logo: "" money: "0.0256" name: "平台账户" password: "$2y$10$3GZzwwdVlZJzhljKUGot3OExssanfxtm659/Vcm2EbDgPk6rdMi5S" pay_password: "$2y$10$ld7S71h7uLOCq9QKp.RyWewW6UrwQt0hxBo0pNh3jtB6K9m9sTa/y" phone: "151****1430" pid: "0" pid_name: "顶级账户" province_name: "河北省" remember_token: null s_code: "1234" s_code_url: "https://pay.umxnt.com/api/user/s_code_url" settlement_money: "0.00" sub_code_url: "https://pay.umxnt.com/api/user/s_code_url" unsettlement_money: "0.00" updated_at: "2019-10-28 16:12:05" wx_openid: "" }, …… } l: 200 message: "数据返回成功" order_data: [] p: 1 status: 1 t: 28 } <<< error ``` ```