|
@@ -108,6 +108,8 @@ class kuaishouAuthor():
|
|
timeout=10)
|
|
timeout=10)
|
|
response.close()
|
|
response.close()
|
|
if response.status_code != 200:
|
|
if response.status_code != 200:
|
|
|
|
+ if "-" in mark:
|
|
|
|
+ mark = mark.split("-")[0]
|
|
Common.logger("kuaishou").info(
|
|
Common.logger("kuaishou").info(
|
|
f"接口请求失败,请更换cookie,{response.status_code}")
|
|
f"接口请求失败,请更换cookie,{response.status_code}")
|
|
Feishu.bot('recommend', '快手', f'快手cookie失效,请及时更换~', mark, mark_name)
|
|
Feishu.bot('recommend', '快手', f'快手cookie失效,请及时更换~', mark, mark_name)
|
|
@@ -118,6 +120,8 @@ class kuaishouAuthor():
|
|
f'数据为空{response.json()["data"]["visionProfilePhotoList"]}')
|
|
f'数据为空{response.json()["data"]["visionProfilePhotoList"]}')
|
|
break
|
|
break
|
|
elif len(response.json()["data"]["visionProfilePhotoList"]["feeds"]) == 0:
|
|
elif len(response.json()["data"]["visionProfilePhotoList"]["feeds"]) == 0:
|
|
|
|
+ if "-" in mark:
|
|
|
|
+ mark = mark.split("-")[0]
|
|
Common.logger("kuaishou").info(
|
|
Common.logger("kuaishou").info(
|
|
f'数据为空{response.json()["data"]["visionProfilePhotoList"]["feeds"]}')
|
|
f'数据为空{response.json()["data"]["visionProfilePhotoList"]["feeds"]}')
|
|
Feishu.bot('recommend', '快手', f'快手cookie失效,请及时更换~', mark, mark_name)
|
|
Feishu.bot('recommend', '快手', f'快手cookie失效,请及时更换~', mark, mark_name)
|