✨ update cache expired time
This commit is contained in:
@@ -1,5 +1,8 @@
|
|||||||
import {service} from "@/utils/alova/service.ts";
|
import {service} from "@/utils/alova/service.ts";
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获取验证码图片数据
|
||||||
|
*/
|
||||||
export const getRotatedCaptchaData = () => {
|
export const getRotatedCaptchaData = () => {
|
||||||
return service.Get('/api/captcha/rotate/get', {
|
return service.Get('/api/captcha/rotate/get', {
|
||||||
meta: {
|
meta: {
|
||||||
@@ -8,6 +11,11 @@ export const getRotatedCaptchaData = () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
};
|
};
|
||||||
|
/**
|
||||||
|
* 验证验证码
|
||||||
|
* @param angle
|
||||||
|
* @param key
|
||||||
|
*/
|
||||||
export const checkRotatedCaptcha = (angle: any, key: any) => {
|
export const checkRotatedCaptcha = (angle: any, key: any) => {
|
||||||
return service.Post('/api/captcha/rotate/check', {
|
return service.Post('/api/captcha/rotate/check', {
|
||||||
angle: angle,
|
angle: angle,
|
||||||
|
@@ -11,7 +11,7 @@ export const getGiteeUrl = () => {
|
|||||||
},
|
},
|
||||||
cacheFor: {
|
cacheFor: {
|
||||||
mode: "restore",
|
mode: "restore",
|
||||||
expire: 1000 * 60 * 60 * 24 * 30 // 30 days
|
expire: 1000 * 60 * 60 * 24 * 7
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
@@ -14,7 +14,7 @@ export const getGithubUrl = (state: string) => {
|
|||||||
},
|
},
|
||||||
cacheFor: {
|
cacheFor: {
|
||||||
mode: "restore",
|
mode: "restore",
|
||||||
expire: 1000 * 60 * 60 * 24 * 30 // 30 days
|
expire: 1000 * 60 * 60 * 24 * 7
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
@@ -27,7 +27,7 @@ export const generateClientId = () => {
|
|||||||
},
|
},
|
||||||
cacheFor: {
|
cacheFor: {
|
||||||
mode: "restore",
|
mode: "restore",
|
||||||
expire: 1000 * 60 * 60 * 24 * 30 // 30天
|
expire: 1000 * 60 * 60 * 24 * 7
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
@@ -11,7 +11,7 @@ export const getQQUrl = (state: string) => {
|
|||||||
},
|
},
|
||||||
cacheFor: {
|
cacheFor: {
|
||||||
mode: "restore",
|
mode: "restore",
|
||||||
expire: 1000 * 60 * 60 * 24 * 30 // 30 days
|
expire: 1000 * 60 * 60 * 24 * 7
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
@@ -10,6 +10,7 @@ export const generateQrCode = (clientId: string) => {
|
|||||||
params: {
|
params: {
|
||||||
client_id: clientId
|
client_id: clientId
|
||||||
},
|
},
|
||||||
|
cacheFor: 1000 * 60 * 60 * 24 * 7,
|
||||||
meta: {
|
meta: {
|
||||||
ignoreToken: true,
|
ignoreToken: true,
|
||||||
},
|
},
|
||||||
|
Reference in New Issue
Block a user