Ver código fonte

fix: image num

zhayujie 2 anos atrás
pai
commit
1e0822703a
1 arquivos alterados com 0 adições e 4 exclusões
  1. 0 4
      bot/linkai/link_ai_bot.py

+ 0 - 4
bot/linkai/link_ai_bot.py

@@ -387,11 +387,7 @@ class LinkAIBot(Bot):
         if not image_urls:
         if not image_urls:
             return
             return
         try:
         try:
-            i = 0
             for url in image_urls:
             for url in image_urls:
-                if i >= 3:
-                    continue
-                i += 1
                 if url.endswith(".mp4"):
                 if url.endswith(".mp4"):
                     reply_type = ReplyType.VIDEO_URL
                     reply_type = ReplyType.VIDEO_URL
                 elif url.endswith(".pdf") or url.endswith(".doc") or url.endswith(".docx"):
                 elif url.endswith(".pdf") or url.endswith(".doc") or url.endswith(".docx"):