feat: remove image loading code and add README-test.md

This commit is contained in:
renzhiyuan 2025-12-26 16:21:43 +08:00
parent c2906ad926
commit 1a49952293
2 changed files with 10 additions and 1 deletions

4
README-test.md Normal file
View File

@ -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)

View File

@ -68,6 +68,12 @@ func (d *DingBotService) runBackgroundTasks(ctx context.Context, data *chatbot.B
g.Go(func() error { g.Go(func() error {
// 在完成时关闭通道 // 在完成时关闭通道
defer close(requireData.Ch) 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) return d.dingTalkBotBiz.Do(ctx, requireData)
}) })
@ -76,7 +82,6 @@ func (d *DingBotService) runBackgroundTasks(ctx context.Context, data *chatbot.B
g.Go(func() error { g.Go(func() error {
// 使用defer确保通道关闭 // 使用defer确保通道关闭
defer close(resultDone) defer close(resultDone)
// 处理通道中的数据 // 处理通道中的数据
for { for {
select { select {