获取默认ip

This commit is contained in:
2020-10-30 10:35:39 +08:00
parent 7a3ca8fb62
commit 8ded17d754
3 changed files with 29 additions and 1 deletions

View File

@@ -985,6 +985,16 @@ export async function luzhi(roomid: string){
console.log(res)
}
export async function getaddr() {
const res = await get<any>('ip');
const gj = res.data.address.split("|")[0];
if(gj == "CN"){
return ["zh", "中文", '人民币¥'];
}else {
return ['en', 'English', '美元$']
}
}
// export async function StopMCUMixTranscode(roomid: number) {
// const res = await get('StopMCUMixTranscode', {roomid});
// console.log(res)