add rotate captcha

This commit is contained in:
landaiqing
2024-08-12 22:24:16 +08:00
parent fea8b9df2d
commit 431e690f02
18 changed files with 257 additions and 38 deletions

23
src/api/captcha/index.ts Normal file
View File

@@ -0,0 +1,23 @@
import {service} from "@/utils/alova/service.ts";
export const getRotatedCaptchaData = () => {
return service.Get('/api/captcha/rotate/get', {
meta: {
ignoreToken: true
},
});
};
export const checkRotatedCaptcha = (angle: any, key: any) => {
return service.Post('/api/captcha/rotate/check', {
angle: angle,
key: key,
},
{
meta: {
ignoreToken: true
},
}
);
};