Compare commits

..

6 Commits

Author SHA1 Message Date
limix
241095664d
Merge 2307faf31aa312324c499155705c921720dd712e into ef85084730e03c3b21ea3d361867a7c79c1afff4 2024-10-05 19:08:48 +08:00
muwoo
ef85084730
Update package.json 2024-10-05 18:41:32 +08:00
muwoo
b4b7c81b60
Update index.ts 2024-10-05 18:41:16 +08:00
muwoo
4b79cce2f4
Update package.json 2024-09-30 21:19:07 +08:00
muwoo
ae10dac5f7
Merge pull request #396 from clevertension/master
fix #395: the plugin windows error with data retrieve
2024-09-30 21:18:23 +08:00
clevertension
1e0babe22d fix #395: the plugin windows error data retrieve 2024-09-30 15:22:13 +08:00
2 changed files with 10 additions and 9 deletions

View File

@ -1,6 +1,6 @@
import axios from 'axios'; import axios from 'axios';
let baseURL = 'https://gitcode.net/rubickcenter/rubick-database/-/raw/master'; let baseURL = 'https://gitee.com/monkeyWang/rubickdatabase/raw/master';
let access_token = ''; let access_token = '';
try { try {
@ -23,9 +23,10 @@ export default {
if (access_token) { if (access_token) {
targetPath = `${encodeURIComponent( targetPath = `${encodeURIComponent(
targetPath targetPath
)}/raw?access_token=${access_token}&ref=master`; )}?access_token=${access_token}&ref=master`;
} }
const res = await instance.get(targetPath); const res = await instance.get(targetPath);
console.log('total plugsin', res);
return res.data; return res.data;
}, },
@ -34,7 +35,7 @@ export default {
if (access_token) { if (access_token) {
targetPath = `${encodeURIComponent( targetPath = `${encodeURIComponent(
targetPath targetPath
)}/raw?access_token=${access_token}&ref=master`; )}?access_token=${access_token}&ref=master`;
} }
const res = await instance.get(targetPath); const res = await instance.get(targetPath);
return res.data; return res.data;
@ -45,7 +46,7 @@ export default {
if (access_token) { if (access_token) {
targetPath = `${encodeURIComponent( targetPath = `${encodeURIComponent(
targetPath targetPath
)}/raw?access_token=${access_token}&ref=master`; )}?access_token=${access_token}&ref=master`;
} }
const res = await instance.get(targetPath); const res = await instance.get(targetPath);
return res.data; return res.data;
@ -55,7 +56,7 @@ export default {
if (access_token) { if (access_token) {
targetPath = `${encodeURIComponent( targetPath = `${encodeURIComponent(
targetPath targetPath
)}/raw?access_token=${access_token}&ref=master`; )}?access_token=${access_token}&ref=master`;
} }
const res = await instance.get(targetPath); const res = await instance.get(targetPath);
return res.data; return res.data;
@ -71,7 +72,7 @@ export default {
if (access_token) { if (access_token) {
targetPath = `${encodeURIComponent( targetPath = `${encodeURIComponent(
targetPath targetPath
)}/raw?access_token=${access_token}&ref=master`; )}?access_token=${access_token}&ref=master`;
} }
const res = await instance.get(targetPath); const res = await instance.get(targetPath);
return res.data; return res.data;
@ -81,7 +82,7 @@ export default {
if (access_token) { if (access_token) {
targetPath = `${encodeURIComponent( targetPath = `${encodeURIComponent(
targetPath targetPath
)}/raw?access_token=${access_token}&ref=master`; )}?access_token=${access_token}&ref=master`;
} }
const res = await instance.get(targetPath); const res = await instance.get(targetPath);
return res.data; return res.data;
@ -91,7 +92,7 @@ export default {
if (access_token) { if (access_token) {
targetPath = `${encodeURIComponent( targetPath = `${encodeURIComponent(
targetPath targetPath
)}/raw?access_token=${access_token}&ref=master`; )}?access_token=${access_token}&ref=master`;
} }
const res = await instance.get(targetPath); const res = await instance.get(targetPath);
return res.data; return res.data;

View File

@ -1,6 +1,6 @@
{ {
"name": "rubick", "name": "rubick",
"version": "4.2.7", "version": "4.2.9",
"author": "muwoo <2424880409@qq.com>", "author": "muwoo <2424880409@qq.com>",
"private": true, "private": true,
"scripts": { "scripts": {