update api/login.js.
账号密码登录没传客户端类型 默认就PC了 导致app登录的话token有效期就两分钟 没有15天 Signed-off-by: 你为什么抱着键盘睡觉 <2170454588@qq.com>master
parent
0feaf55381
commit
ea32948b84
|
@ -19,13 +19,14 @@ export function resetByMobile(params) {
|
||||||
* @params password
|
* @params password
|
||||||
* @params username
|
* @params username
|
||||||
*/
|
*/
|
||||||
export function userLogin(params){
|
export function userLogin(params, clientType){
|
||||||
return http.request({
|
return http.request({
|
||||||
method: "POST",
|
method: "POST",
|
||||||
url:`/passport/member/userLogin`,
|
url:`/passport/member/userLogin`,
|
||||||
data: params,
|
data: params,
|
||||||
header: {
|
header: {
|
||||||
"content-type": "application/x-www-form-urlencoded",
|
"content-type": "application/x-www-form-urlencoded",
|
||||||
|
clientType: clientType,
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue