修改api url

This commit is contained in:
lingling 2024-08-30 08:31:42 +08:00
parent 4855816bb0
commit 62013be37f
1 changed files with 11 additions and 3 deletions

View File

@ -1,13 +1,21 @@
/*
* @Author: lingling 1077478963@qq.com
* @Date: 2024-08-29 15:14:48
* @LastEditors: lingling 1077478963@qq.com
* @LastEditTime: 2024-08-29 16:12:39
* @FilePath: \link_chang\src\api\api.ts
* @Description: ,`customMade`, koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
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.shagain.club/api.php?type=list'); return await api.get('https://api.giaogiao.uk/api.php?type=list');
} }
async text_server(url: string) { async text_server(url: string) {
return await api.post('https://api.shagain.club/textserver', { url }); return await api.post('https://api.giaogiao.uk/textserver', { url });
} }
async get_country(ip: string) { async get_country(ip: string) {
return await api.post('https://api.shagain.club/api.php?type=searchip', { ip }); return await api.post('https://api.giaogiao.uk/api.php?type=searchip', { ip });
} }
} }
export { getdata }; export { getdata };