dsh-feishu-lark-notify 0.28.0 → 0.28.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/index.js +4 -2
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -37,7 +37,7 @@ import { startWsInbound } from './inbound-ws.js'
|
|
|
37
37
|
export const name = 'feishu-notify'
|
|
38
38
|
|
|
39
39
|
/** 版本号(与 package.json 保持一致,单测会校验)。 */
|
|
40
|
-
export const VERSION = '0.28.
|
|
40
|
+
export const VERSION = '0.28.1'
|
|
41
41
|
|
|
42
42
|
/** 内存日志上限。 */
|
|
43
43
|
const LOG_LIMIT = 200
|
|
@@ -1530,7 +1530,9 @@ export function apply(ctx, rawConfig) {
|
|
|
1530
1530
|
{ msg_type: 'text', content: { text } },
|
|
1531
1531
|
{ chatIds: target === '' ? channel.receiveChatIds : [target], timeoutMs: config.timeoutMs },
|
|
1532
1532
|
)
|
|
1533
|
-
if (
|
|
1533
|
+
if (results.some((item) => item.ok)) {
|
|
1534
|
+
log(`回执已发(${target || '默认目标'}):${clip(text, 40)}`)
|
|
1535
|
+
} else {
|
|
1534
1536
|
log(`回执发送失败: ${results.map((item) => item.error).filter(Boolean).join('; ')}`)
|
|
1535
1537
|
}
|
|
1536
1538
|
return
|