diff --git a/server/plugins/com.msgbyte.agora/services/agora.service.dev.ts b/server/plugins/com.msgbyte.agora/services/agora.service.dev.ts index 747664da..3fb1e63e 100644 --- a/server/plugins/com.msgbyte.agora/services/agora.service.dev.ts +++ b/server/plugins/com.msgbyte.agora/services/agora.service.dev.ts @@ -75,7 +75,7 @@ class AgoraService extends TcService { !this.serverCustomerSecret ) { this.logger.warn( - '声网服务启动失败, 缺少必要的环境变量。AGORA_APP_ID, AGORA_APP_CERT, AGORA_CUSTOMER_KEY, AGORA_CUSTOMER_SECRET' + '声网服务启动失败, 缺少必要的环境变量: AGORA_APP_ID, AGORA_APP_CERT, AGORA_CUSTOMER_KEY, AGORA_CUSTOMER_SECRET' ); return; } diff --git a/server/plugins/com.msgbyte.github/services/subscribe.service.ts b/server/plugins/com.msgbyte.github/services/subscribe.service.ts index ec85b33d..d4bba408 100644 --- a/server/plugins/com.msgbyte.github/services/subscribe.service.ts +++ b/server/plugins/com.msgbyte.github/services/subscribe.service.ts @@ -190,10 +190,10 @@ class GithubSubscribeService extends TcService { let message = `[url=${userUrl}]${name}[/url] 在 ${repo} 更新了PR请求:\n网址: ${url}`; if (event.action === 'opened') { - message = `[url=${userUrl}]${name}[/url] 在 ${repo} 创建了PR请求:\n${title}\n[markdown]${body}[/markdown]\n\n网址: ${url}`; + message = `[url=${userUrl}]${name}[/url] 在 ${repo} 创建了PR请求:\n${title}\n[markdown]${body}[/markdown]\n网址: ${url}`; } else if (event.action === 'created') { const comment = event.comment; - message = `[url=${userUrl}]${name}[/url] 在 ${repo} 回复了PR请求:\n${title}\n[markdown]${comment.body}[/markdown]\n\n网址: ${url}`; + message = `[url=${userUrl}]${name}[/url] 在 ${repo} 回复了PR请求:\n${title}\n[markdown]${comment.body}[/markdown]\n网址: ${url}`; } else if (event.action === 'closed') { message = `[url=${userUrl}]${name}[/url] 在 ${repo} 关闭了PR请求:\n${title}\n\n网址: ${url}`; } @@ -210,10 +210,10 @@ class GithubSubscribeService extends TcService { if (event.action === 'opened') { // @ts-ignore 这里不知道为什么判断issue为never 跳过 const body = event.issue.body; - message = `[url=${userUrl}]${name}[/url] 在 ${repo} 创建了Issue:\n${title}\n[markdown]${body}[/markdown]\n\n网址: ${url}`; + message = `[url=${userUrl}]${name}[/url] 在 ${repo} 创建了Issue:\n${title}\n[markdown]${body}[/markdown]\n网址: ${url}`; } else if (event.action === 'created') { const comment = event.comment; - message = `[url=${userUrl}]${name}[/url] 在 ${repo} 回复了Issue:\n${title}\n回复内容:[markdown]${comment.body}[/markdown]\n\n网址: ${url}`; + message = `[url=${userUrl}]${name}[/url] 在 ${repo} 回复了Issue:\n${title}\n回复内容:[markdown]${comment.body}[/markdown]\n网址: ${url}`; } else if (event.action === 'closed') { message = `[url=${userUrl}]${name}[/url] 在 ${repo} 关闭了Issue:\n${title}\n\n网址: ${url}`; }