From bd5b7852f04ad1ae1deea45369009f9627edb76c Mon Sep 17 00:00:00 2001 From: COOL Date: Fri, 20 Jun 2025 11:37:29 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9EonServerReadyOnce=E4=BA=8B?= =?UTF-8?q?=E4=BB=B6=EF=BC=8Ccluster=E6=A8=A1=E5=BC=8F=E4=B8=8B=E5=8F=AA?= =?UTF-8?q?=E8=A7=A6=E5=8F=91=E4=B8=80=E6=AC=A1=EF=BC=8C=E5=88=9D=E5=A7=8B?= =?UTF-8?q?=E5=8C=96=E4=BB=BB=E5=8A=A1=E4=BA=8B=E4=BB=B6=E6=94=B9=E4=B8=BA?= =?UTF-8?q?onServerReadyOnce?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 +- src/modules/task/event/comm.ts | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 0bf7708..c5c413d 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "description": "一个很酷的Ai快速开发框架", "private": true, "dependencies": { - "@cool-midway/core": "8.0.4", + "@cool-midway/core": "8.0.6", "@cool-midway/rpc": "8.0.1", "@cool-midway/task": "8.0.2", "@midwayjs/bootstrap": "^3.20.3", diff --git a/src/modules/task/event/comm.ts b/src/modules/task/event/comm.ts index 89d0a62..1d70666 100644 --- a/src/modules/task/event/comm.ts +++ b/src/modules/task/event/comm.ts @@ -14,8 +14,9 @@ export class TaskCommEvent { @Inject() taskLocalService: TaskLocalService; - @Event('onServerReady') - async onServerReady() { + @Event('onServerReadyOnce') + async onServerReadyOnce() { + console.log('onServerReadyOnce', 'initTask'); this.taskInfoService.initTask(); }