|
@@ -2,7 +2,7 @@ import random
|
|
|
import time
|
|
|
import requests
|
|
|
import json
|
|
|
-from common import Common
|
|
|
+from common import Common, Feishu
|
|
|
from common.sql_help import sqlCollect
|
|
|
|
|
|
class KSLS:
|
|
@@ -25,6 +25,14 @@ class KSLS:
|
|
|
response = response.json()
|
|
|
list = []
|
|
|
data_all_list = response["data"]
|
|
|
+ if data_all_list == None or len(data_all_list) == 0:
|
|
|
+ try:
|
|
|
+ if response["cdoe"] == 27006:
|
|
|
+ Feishu.finish_bot(response["msg"],
|
|
|
+ "https://open.feishu.cn/open-apis/bot/v2/hook/575ca6a1-84b4-4a2f-983b-1d178e7b16eb", "【 Token 使用提示 】")
|
|
|
+ except Exception as exc:
|
|
|
+ return list
|
|
|
+
|
|
|
has_more = data_all_list["has_more"]
|
|
|
next_cursor = str(data_all_list["next_cursor"])
|
|
|
try:
|
|
@@ -85,5 +93,7 @@ class KSLS:
|
|
|
|
|
|
|
|
|
if __name__ == '__main__':
|
|
|
+ Feishu.finish_bot('测试',
|
|
|
+ "https://open.feishu.cn/open-apis/bot/v2/hook/575ca6a1-84b4-4a2f-983b-1d178e7b16eb", "【 Token 使用提示 】")
|
|
|
# DYLS.get_video("7314923922602954022")
|
|
|
KSLS.get_ksls_list("1","3xzicxg2nandemc",1,"1")
|