🐱🐱🐱🐱🐱🐱🐱

This commit is contained in:
2025-07-11 20:11:27 +08:00
parent 93f42d3d9b
commit 5c76d14071
2 changed files with 16 additions and 15 deletions

View File

@@ -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;