修改后端api程式

This commit is contained in:
lingling 2024-12-05 20:58:06 +08:00
parent 9c65fb2491
commit 4cc3befc07
2 changed files with 3 additions and 3 deletions

View File

@ -1,4 +1,4 @@
import { copyToClipboard, QVueGlobals, useQuasar } from 'quasar' import { copyToClipboard, QVueGlobals } from 'quasar'
/** /**

View File

@ -1,7 +1,7 @@
import { api } from 'src/boot/axios'; import { api } from 'src/boot/axios';
class getdata { class getdata {
async get_server() { async get_server() {
return await api.get('https://api.giaogiao.uk/api.php?type=list'); return await api.get('https://api.giaogiao.uk/server/getlist');
} }
async text_server(url: string) { async text_server(url: string) {
const res = await api.post( const res = await api.post(
@ -13,7 +13,7 @@ class getdata {
return tmp return tmp
} }
async get_country(ip: string) { async get_country(ip: string) {
let res = await api.post('https://api.giaogiao.uk/api.php?type=searchip', { let res = await api.post('https://api.giaogiao.uk/server/searchip', {
ip, ip,
}); });
res = res.data.country res = res.data.country