ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
#### 登录 ~~~[api] post:/distributor/index/login *string:username#用户名 *string:password#密码 <<< success { "code": 1, "msg": "success", "time": "2018-09-20 12:15:42", "data": { "id": 1, "username": "psy01", "mobile": "13212345678", "realname": "配送员1", "longitude": "1", "latitude": "1", "type": 2, "work": 1, "status": 1, "created_at": "2018-09-15 12:13:07", "updated_at": "2018-09-20 12:08:53", "status_text": "正常", "work_text": "开工", "stores": "小米官方东莞旗舰店" } } <<< error { "code": 20001, "msg": "用户名密码错误", "time": "2018-01-03 16:40:59", "data": [] } <<< error { "code": 20011, "msg": "已登录", "time": "2018-01-03 16:41:15", "data": [] } ~~~ #### 注册 ~~~[api] post:/distributor/index/register *string:username#用户名 *string:password#密码 *string:mobile#手机号码 *string:code#手机验证码 <<< success { "code": 1, "msg": "success", "time": "2018-07-03 10:34:54", "data": { "username": "配送员1", "mobile": "18666868863", "work": 0, "status": 1, "created_at": "2018-07-03 10:34:55", "updated_at": "2018-07-03 10:34:55", "id": "1", "status_text": "正常", "work_text": "休息" } } ~~~ #### 登出 ~~~[api] post:/distributor/index/logout <<< success { "code": 1, "msg": "success", "time": "2018-01-02 16:00:10", "data": [] } ~~~ #### 个人信息 > `type = 1` (平台配送员)无 `stores` 属性 ~~~[api] get:/distributor/index/personal <<< success { "code": 1, "msg": "success", "time": "2018-09-20 12:15:42", "data": { "id": 1, "username": "psy01", "mobile": "13212345678", "realname": "配送员1", "longitude": "1", "latitude": "1", "type": 2, "work": 1, "status": 1, "created_at": "2018-09-15 12:13:07", "updated_at": "2018-09-20 12:08:53", "status_text": "正常", "work_text": "开工", "stores": "小米官方东莞旗舰店" } } ~~~ #### 更改个人信息 ~~~[api] get:/distributor/index/changePersonal *string:realname#真实姓名 <<< success { "code": 1, "msg": "success", "time": "2018-11-13 23:33:56", "data": { "id": 6, "username": "psy005", "mobile": "13512345679", "realname": "配送员5", "longitude": "", "latitude": "", "type": 1, "work": 0, "status": 1, "created_at": "2018-11-13 23:07:35", "updated_at": "2018-11-13 23:33:49", "status_text": "正常", "work_text": "休息" } } ~~~ #### 更改密码 ~~~[api] post:/distributor/index/index/changePassword *string:newpassword#新密码 *string:renewpassword#确认新密码 <<< success { "code": 1, "msg": "success", "time": "2018-01-13 23:37:50", "data": [] } <<< example { "newpassword": "1234567", "renewpassword": "1234567" } <<< error { "code": 0, "msg": "新密码与重复新密码不能为空", "time": "2018-01-13 22:50:09", "data": [] } <<< error { "code": 0, "msg": "新密码与重复新密码不一致", "time": "2018-01-13 22:49:54", "data": [] } ~~~