AI写作智能体 自主规划任务,支持联网查询和网页读取,多模态高效创作各类分析报告、商业计划、营销方案、教学内容等。 广告
[TOC=2] ## 登录 ~~~[api] post:/named_user/login *string:username=pttsy01#登录账号 *string:password=12345678#登录密码 <<< <<< field_explain username // 2 ~ 16 个字符 password // 加密后 64 个字符 <<< success { "code": 0, "data": { "name": "平台调试员", "remarks": "二位", "priority": 3, "expire_date": "2099-12-31 23:59:59", "recent_login_time": "2021-11-08 15:29:12", "configs": [], "username": "15181474781", "phone": "15181474781", "session_key": "PHPSESSID", "session_value": "0vctv68auqv20d1p8209r4sgt1" } } <<< success_explain name // 姓名 remarks // 备注信息 expire_date // 到期时间 recent_login_time // 最近登录时间 configs // 其他配置 username // 登录账号 phone // 登录手机号 session_key // 登录状态 session_value // 登录状态 <<< error { "code": -1, "msg": "用户名或密码错误" } ~~~ >[danger] 密码需要用 sha256 进行加密 ## 退出登录 ~~~[api] get:/named_user/logout <<< <<< success { "code": 0 } <<< error ~~~ ## 修改密码 ~~~[api] post:/named_user/change_password *string:password=12345678#原密码 *string:password_new=123456789#新密码 <<< <<< field_explain password // 加密后 64 个字符 password_new // 加密后 64 个字符 <<< success { "code": 0 } <<< error { "code": -1, "msg": "原密码不正确" } ~~~ >[danger] 密码需要用 sha256 进行加密 ## 获取验证码 ~~~[api] post:/smsCaptcha/v2/acquire *string:phone=13333333333#手机号 <<< <<< field_explain phone // 手机号校验规则 <<< success { "code": 0, "data": { "expire": 10, "length": 6, "captcha": "584691" } } <<< success_explain expire // 有效时间(分钟) length // 长度 captcha // 验证码(调试返回) <<< error { "code": -1, "msg": "手机号长度错误" } ~~~ ## 获取账号 ~~~[api] get:/named_user/get_account *string:phone=13333333333#手机号 *string:sms_captcha=584691#验证码 <<< <<< field_explain phone // 手机号校验规则 sms_captcha // 6 位数字 <<< success { "code": 0, "data": { "list": [ { "username": "pttsy01" } ] } } <<< success_explain username // 登录账号 <<< error ~~~