zhangyong 7 months ago
parent
commit
063ea43888
1 changed files with 3 additions and 3 deletions
  1. 3 3
      video_rewriting/video_processor.py

+ 3 - 3
video_rewriting/video_processor.py

@@ -591,21 +591,21 @@ class VideoProcessor:
                 mark_count = 'dyss-count'
                 count = get_first_value_with_prefix(mark_count)
                 increment_key(mark_count)
-                if int(count) == 300:
+                if int(count) >= 300:
                     Common.logger(mark).log(f"抖音搜索接口今日已经上限")
                     return "抖音搜索上限"
             if mark == 'sph-pl-gjc':
                 mark_count = 'sphss-count'
                 count = get_first_value_with_prefix(mark_count)
                 increment_key(mark_count)
-                if int(count) == 300:
+                if int(count) >= 300:
                     Common.logger(mark).log(f"视频号搜索接口今日已经上限")
                     return "视频号搜索上限"
             if mark == 'sph-plzh'and task['channel_id'] == '视频号':
                 mark_count = 'sph-count'
                 count = get_first_value_with_prefix(mark_count)
                 increment_key(mark_count)
-                if int(count) == 400:
+                if int(count) >= 400:
                     Common.logger(mark).log(f"视频号获取用户主页今日已经上限")
                     return "视频号获取用户主页视频上限"
             VideoProcessor.process_task(task, mark, name, feishu_id, cookie_sheet)