This commit is contained in:
DESKTOP-5RP3AKU\Jisol 2025-04-16 13:22:23 +08:00
parent c65eed7e63
commit b44ec7d2e4
3 changed files with 5 additions and 3 deletions

View File

@ -112,7 +112,7 @@ export default class GOnHookManager extends Singleton{
//获取下一只野怪
getNextCreeps(){
if(this.getKillSreepsIds().length > 50) return;
if(!this.sreeps) return;
if(!this.sreeps || this.sreeps.size < 1) return;
let creeps = this.sreeps.get(this.sreeps.keys().next()?.value);
this.sreeps.delete(creeps.key);
return creeps;

View File

@ -44,7 +44,9 @@ export class LoginView extends JNLayerBase {
if(info){
app.layer.Open(GUI.Tips,{text:"登录成功"});
//保存Token
if(EnvCurrent != Env.Server){
StorageData.set(StorageEnum.Token,info.token);
}
this.resolve(info.token);
this.onJNClose();
}

View File

@ -1,7 +1,7 @@
// const URL = "http://192.168.0.174:7457/web-desktop/web-desktop/index.html"
// const express = require("express");
// const app = express();
const URL = "http://192.168.2.7:7456/web-desktop/web-desktop/index.html"
const URL = "http://192.168.207.76:7456/web-desktop/web-desktop/index.html"
// const runCocos = () => {
const { JSDOM,ResourceLoader } = require('jsdom')