mirror of
https://gitee.com/jisol/jisol-game/
synced 2025-10-09 00:26:11 +00:00
提交
This commit is contained in:
@@ -26,12 +26,12 @@ import { JAPI, JAPIConfig } from "../../extensions/ngame/assets/ngame/util/JAPI"
|
||||
import { AppData } from "./AppData";
|
||||
import AppAction from "./AppAction";
|
||||
|
||||
let APIPath = `http://localhost:8080`
|
||||
let WsPath = `ws://localhost:8080/websocket`
|
||||
// let APIPath = `http://localhost:8080`
|
||||
// let WsPath = `ws://localhost:8080/websocket`
|
||||
// let APIPath = `http://192.168.1.23:8080`
|
||||
// let WsPath = `ws://192.168.1.23:8080/websocket`
|
||||
// let APIPath = `http://192.168.0.170:8080`
|
||||
// let WsPath = `ws://192.168.0.170:8080/websocket`
|
||||
let APIPath = `http://192.168.0.113:8080`
|
||||
let WsPath = `ws://192.168.0.113:8080/websocket`
|
||||
// let APIPath = `https://api.pet.jisol.cn`
|
||||
// let WsPath = `wss://api.pet.jisol.cn/websocket`
|
||||
|
||||
@@ -47,7 +47,7 @@ class JNGSocket extends JNSocket{
|
||||
this.on(GAction.TOKEN_EXPIRED,this.onTokenExpired.bind(this));
|
||||
await super.onInit();
|
||||
}
|
||||
public url():Promise<string> {
|
||||
public async url():Promise<string> {
|
||||
return new Promise<string>(resolve => {
|
||||
//获取Token
|
||||
let token = StorageData.get(StorageEnum.Token);
|
||||
|
Reference in New Issue
Block a user