Commit 624c1a2b authored by 张瑶's avatar 张瑶

feat: 更新登录接口参数

parent 63159031
Pipeline #40725 passed with stages
in 3 minutes 48 seconds
......@@ -595,10 +595,10 @@ class Login {
expiration: this.globalConfig.expiration, // token过期时间(单位:秒)
client: 'referer',
username: usr,
password: sha1(pwd).toUpperCase(),
password: params.getParams('generateType') ? pwd : sha1(pwd).toUpperCase(),
referer: this.globalConfig.client,
skipMenuTest: 1,
generateType: params.getParams('generateType') || 'pandaoa'
generateType: params.getParams('generateType') || ''
})
.then(response => {
......@@ -844,8 +844,9 @@ class Login {
usr = userPhone ? userPhone: usr;
appService.authorizationToken({
loginName: usr,
password: pwd ? sha1(pwd).toUpperCase(): '',
type: mode
password: pwd ? (params.getParams('generateType') ? pwd : sha1(pwd).toUpperCase()) : '',
type: mode,
generateType: params.getParams('generateType') || ''
}).then(res => {
if(res.code === 0) {
......@@ -873,12 +874,14 @@ class Login {
expiration: this.globalConfig.expiration, // token过期时间(单位:秒)
client: 'referer',
username: usr,
password: pwd ? sha1(pwd).toUpperCase() : '',
password: pwd ? (params.getParams('generateType') ? pwd : sha1(pwd).toUpperCase()) : '',
referer: this.globalConfig.client,
skipMenuTest: 1,
userPhone,
'request.preventCache': Date.now(),
ignoreSite: true,
loginName: usr,
generateType: params.getParams('generateType') || ''
},
)
.then(response => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment