授权登录注册(技能等级)
请求URL
https://yedus.dyhculture.com/api/study.platform/authLogin
请求方式
参数
参数名 |
必选 |
类型 |
说明 |
code |
是 |
string |
授权登录需要的code |
secret |
是 |
string |
授权登录需要的secret |
rand |
是 |
string |
随机数 |
time |
是 |
int |
时间戳 |
account |
是 |
string |
账号 数字加英文 |
platform |
是 |
string |
管理平台的用户名 :ystxx221128 |
jobType |
是 |
string |
工种类型 |
jobLevel |
是 |
int |
工种等级 1初级 2中级 3高级 |
period |
是 |
string |
班期/批次名称 去后台创建 |
idCard |
否 |
string |
身份证号码 |
jobList |
否 |
arr |
批量注册工种使用,此参数不为空时, jobtype, jobLevel, period 参数无效, 详细格式如下 |
jobType
chosenProduct 选品员
platformManager 平台管理员
liveSales 直播销售员
videoCreationPushMember 视频创推员
secret = md5(code-time-rand-key)
jobList, type, level值同 jobType,jobLevel
[
["period" => "xxx", "type" => 1, "level" => 1] ...
]
返回示例
在返回的头部里面返回 platform-token
{
"code": 20000,
"msg": "登录成功",
"time": "2022-04-22 10:19:45",
"data": {
"account": "xxx"
}
}
首次调用会注册账号 后续调用直接登录
成功返回code 20000
失败返回code 40000 / 40003 (收到请求了, 但服务器做了些限制, 客户端无法满足, 被拒绝了, 一般的请求太频繁, 密码错误之类的, 可以直接弹出msg)