修改后端api程式
This commit is contained in:
parent
9c65fb2491
commit
4cc3befc07
|
@ -1,4 +1,4 @@
|
|||
import { copyToClipboard, QVueGlobals, useQuasar } from 'quasar'
|
||||
import { copyToClipboard, QVueGlobals } from 'quasar'
|
||||
|
||||
|
||||
/**
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import { api } from 'src/boot/axios';
|
||||
class getdata {
|
||||
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) {
|
||||
const res = await api.post(
|
||||
|
@ -13,7 +13,7 @@ class getdata {
|
|||
return tmp
|
||||
}
|
||||
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,
|
||||
});
|
||||
res = res.data.country
|
||||
|
|
Loading…
Reference in New Issue