企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
## UCenter [TOC=3,3] ### 获取验证码 ~~~[api] post:/index.php?ctl=Login&met=getPhonCode&typ=json *string:mobile#手机号 <<< success { "cmd_id": -140, "status": 200, "msg": "发送成功", "data": { "user_code": 128282 } } <<< error { "cmd_id": -140, "status": 250, "msg": "发送失败", "data": { "user_code": 786037 } } ~~~ ### 检测手机号绑定 ~~~[api] post:/index.php?ctl=Login&met=checkBindMobile&typ=json *string:mobile#手机号 <<< success 返回示例 { "cmd_id": 100, "status": 200, "msg": "success", "data": [] } <<< error { "cmd_id": 100, "status": 250, "msg": "filed", "data": [] } ~~~ ### 第三方授权登录 ~~~[api] post:/index.php?ctl=Login&met=connect&typ=json *string:bind_id#unionid(前缀:qq_ or weixin_) *string:access_token#access_token *string:openid#openid *string:bind_avator#headimgurl(用户头像) *string:bind_nickname#nickname(用户昵称) *string:bind_gender#sex 1,男;2,女 *string:type#qq or weixin <<< success //已绑定直接登录 { "cmd_id": -140, "status": 200, "msg": "success", "data": { "user_id": "10032", "user_name": "", "password": null, "user_state": "0", "action_time": "1521514240", "action_ip": "114.95.158.198", "session_id": "5ab07700eaa29", "shop_id": "2", "id": "10032", "result": 1, "k": "AyNbKQxlCXcAWlE6AjEHP1U3VmYEbQVkVGM=" } } //未绑定进入绑定页面 { "cmd_id": -140, "status": 210, "msg": "success", "data": { "url": "https://sassucenter.local.yuanfeng021.com/index.php?ctl=Login&met=select&t=8_iZr4Hw_FZ4e4lKtnb5ERykHT5mI1ywdiEZFCKPSOu3msejHl72erpZTHtW96QXGCcsF9ksXe4PbxgfmpLfXymqFijGf8L8rCsT7tiqYXIpw&type=3&from=&callback=" } } <<< error ~~~ ### 账号关联 ~~~[api] post:/index.php?ctl=Login&met=bindReg&typ=json *mobile#手机号 *code#验证码 *token#access_token *type#QQ:2,微信:3 <<< success { "cmd_id": 100, "status": 200, "msg": "success", "data": { "user_name": "", "server_id": 0, "k": "CioBcwRtCXdWDAJpADNWbgFjBTVSOwRlU2Q=", "session_id": "5ab07700eaa29", "user_id": "10032" } } <<< error { "cmd_id": -1, "status": 250, "msg": "验证码错误", "data": [] } ~~~