From 1a49952293909cfde2881d1178c6b7fa018fabb1 Mon Sep 17 00:00:00 2001 From: renzhiyuan <465386466@qq.com> Date: Fri, 26 Dec 2025 16:21:43 +0800 Subject: [PATCH] feat: remove image loading code and add README-test.md --- README-test.md | 4 ++++ internal/services/dtalk_bot.go | 7 ++++++- 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 README-test.md diff --git a/README-test.md b/README-test.md new file mode 100644 index 0000000..161ea9a --- /dev/null +++ b/README-test.md @@ -0,0 +1,4 @@ +[https://p6-img.searchpstatp.com/tos-cn-i-vvloioitz3/6e5e76d274df2efabde9194a06f97e89~tplv-vvloioitz3-6:190:124.jpeg] + + +![图片](https://p6-img.searchpstatp.com/tos-cn-i-vvloioitz3/ab5ae998d8162b431f44fb2a0ed9ae33~tplv-vvloioitz3-6:190:124.jpeg) \ No newline at end of file diff --git a/internal/services/dtalk_bot.go b/internal/services/dtalk_bot.go index 5b9a8e6..b71e40b 100644 --- a/internal/services/dtalk_bot.go +++ b/internal/services/dtalk_bot.go @@ -68,6 +68,12 @@ func (d *DingBotService) runBackgroundTasks(ctx context.Context, data *chatbot.B g.Go(func() error { // 在完成时关闭通道 defer close(requireData.Ch) + + //entitys.ResLoading(requireData.Ch, "", "![图片](") + //entitys.ResLoading(requireData.Ch, "", "https://p6-img.") + //entitys.ResLoading(requireData.Ch, "", "searchpstatp.com/") + //entitys.ResLoading(requireData.Ch, "", "tos-cn-i-vvloioitz3/ab5ae998d8162b431f44fb2a0ed9ae33~tplv-vvloioitz3-6:190:124.jpeg)") + return d.dingTalkBotBiz.Do(ctx, requireData) }) @@ -76,7 +82,6 @@ func (d *DingBotService) runBackgroundTasks(ctx context.Context, data *chatbot.B g.Go(func() error { // 使用defer确保通道关闭 defer close(resultDone) - // 处理通道中的数据 for { select {