Browse Source

🦄 refactor: 删除不必要的文件

Pchen. 1 month ago
parent
commit
9009d1a1d6
1 changed files with 0 additions and 27 deletions
  1. 0 27
      plugin/Kaptcha/kaptcha.js

+ 0 - 27
plugin/Kaptcha/kaptcha.js

@@ -1,27 +0,0 @@
-const axios = require('axios');
-const apiUrl = 'https://api.kuaishibie.cn/predict';
-
-const getKaptcha = async (base64data) => {
-    try {
-        const response = await axios.post(apiUrl, {
-            username: 'Pchen0', // 用户名
-            password: 'Yx3ud937', // 密码
-            typeid: '3',
-            image: base64data
-        });
-
-        const data = response.data;
-        if (data.success) {
-            const { result } = data.data;
-            return result;
-        } else {
-            console.error(data.message);
-            throw new Error(data.message);
-        }
-    } catch (error) {
-        console.error('请求失败:', error.message);
-        throw error;
-    }
-};
-
-module.exports = getKaptcha;