✨ add rotate captcha
This commit is contained in:
23
src/api/captcha/index.ts
Normal file
23
src/api/captcha/index.ts
Normal 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
|
||||
},
|
||||
}
|
||||
);
|
||||
|
||||
};
|
Reference in New Issue
Block a user