fix: 学生登录去除参数
This commit is contained in:
parent
b90a932b9a
commit
3f826a1a67
@ -9,18 +9,23 @@ export interface AccountLoginParams {
|
||||
}
|
||||
|
||||
/** 账号密码登录 */
|
||||
export const psdLogin = (data: AccountLoginParams) =>
|
||||
request<string>({
|
||||
export const psdLogin = (data: AccountLoginParams) => {
|
||||
const payload: Record<string, any> = {
|
||||
clientType: 'PC',
|
||||
model: 'web',
|
||||
...data,
|
||||
};
|
||||
// 学生端登录不传 simSerialNumber(接口要求)
|
||||
if (payload.clientType === 'MANAGE') {
|
||||
payload.simSerialNumber = 'web';
|
||||
}
|
||||
return request<string>({
|
||||
url: '/login',
|
||||
method: 'POST',
|
||||
headers: { Authorization: '' },
|
||||
data: {
|
||||
clientType: 'PC',
|
||||
simSerialNumber: 'web',
|
||||
model: 'web',
|
||||
...data,
|
||||
},
|
||||
data: payload,
|
||||
});
|
||||
};
|
||||
|
||||
export interface ParentSmsLoginParams {
|
||||
phone: string;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user