Compare commits

...

3 Commits

Author SHA1 Message Date
pk5ls20
d17674d06e
fix: #553
Some checks failed
Build Action / Build-LiteLoader (push) Failing after 3m49s
Build Action / Build-Shell (push) Failing after 3m21s
2024-11-20 20:58:36 +08:00
pk5ls20
0b839258aa
fix: ci 2024-11-20 19:51:29 +08:00
pk5ls20
50e207cf6f
chore: remove useless log 2024-11-20 17:30:50 +08:00
5 changed files with 11 additions and 8 deletions

View File

@ -18,8 +18,8 @@ jobs:
node-version: 20.x
- name: Build NapCat.Framework
run: |
npm i && cd napcat.webui && npm i && cd ..
npm run build:framework && npm run depend
npm i && cd napcat.webui && npm i && cd .. || exit 1
npm run build:framework && npm run depend || exit 1
rm package-lock.json
- name: Upload Artifact
uses: actions/upload-artifact@v4
@ -37,8 +37,8 @@ jobs:
node-version: 20.x
- name: Build NapCat.Shell
run: |
npm i && cd napcat.webui && npm i && cd ..
npm run build:shell && npm run depend
npm i && cd napcat.webui && npm i && cd .. || exit 1
npm run build:shell && npm run depend || exit 1
rm package-lock.json
- name: Upload Artifact
uses: actions/upload-artifact@v4

View File

@ -6,7 +6,7 @@
"scripts": {
"webui:lint": "eslint --fix src/**/*.{js,ts,vue}",
"webui:dev": "vite",
"webui:build": "vue-tsc -b && vite build",
"webui:build": "vite build",
"webui:preview": "vite preview"
},
"dependencies": {

View File

@ -4,8 +4,8 @@
"type": "module",
"version": "4.1.12",
"scripts": {
"build:framework": "npm run build:webui && vite build --mode framework",
"build:shell": "npm run build:webui && vite build --mode shell",
"build:framework": "npm run build:webui && vite build --mode framework || exit 1",
"build:shell": "npm run build:webui && vite build --mode shell || exit 1",
"build:webui": "cd napcat.webui && vite build",
"dev:framework": "vite build --mode framework",
"dev:shell": "vite build --mode shell",

View File

@ -78,8 +78,12 @@ export class PacketHighwayContext {
ip: int32ip2str(addr.ip),
port: addr.port
});
this.hwClient.changeServer(int32ip2str(addr.ip), addr.port);
}
}
if (this.sig.serverAddr.length === 0) {
this.logger.warn('[Highway PrepareUpload] server addr is empty!');
}
}
async uploadImage(peer: Peer, img: PacketMsgPicElement): Promise<void> {

View File

@ -66,7 +66,6 @@ export async function InitWebUi(logger: LogWrapper, pathWrapper: NapCatPathWrapp
try {
const publishUrl = 'https://ip.011102.xyz/';
const data = await RequestUtil.HttpGetJson<{ IP: { IP: string } }>(publishUrl, 'GET', {}, {}, true, true);
log("IP data", data);
log(`[NapCat] [WebUi] WebUi Publish Panel Url: ${createUrl(data.IP.IP, '/webui', config.token)}`);
} catch (err) {
logger.logError(`[NapCat] [WebUi] Get Publish Panel Url Error: ${err}`);