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