🐱🐱🐱🐱🐱🐱🐱
This commit is contained in:
@@ -17,23 +17,23 @@ export const getCaptcha = async () => {
|
||||
|
||||
/**
|
||||
* 用户登录
|
||||
* @param {string} username - 用户名
|
||||
* @param {string} qq - 用户名
|
||||
* @param {string} password - 密码
|
||||
* @param {string} token - 验证码token
|
||||
* @param {string} captcha - 用户输入的验证码
|
||||
* @returns {Promise<any>} 返回一个包含登录结果信息的Promise对象
|
||||
*/
|
||||
export const userLogin = async (username, password, token, captcha) => {
|
||||
export const userLogin = async (qq, password, token, captcha) => {
|
||||
try {
|
||||
const response = await axiosInstance.post('/user/login', {
|
||||
username,
|
||||
qq,
|
||||
password,
|
||||
token,
|
||||
captcha
|
||||
});
|
||||
|
||||
if (response.data.access_token) {
|
||||
loginSuccess(response.data.access_token, username);
|
||||
loginSuccess(response.data.access_token, qq);
|
||||
}
|
||||
|
||||
return response.data;
|
||||
|
||||
Reference in New Issue
Block a user