add check activity help link
continuous-integration/drone/push Build is passing

This commit is contained in:
jianxin committed 2024-10-22 19:36:08 +08:00
1 parent d0b1713410
commit 8fe6822545
5 files changed
+105 -4

No files matched your search

+19 -3
View File
@@ -633,10 +633,26 @@ if __name__ == "__main__":
dotenv.load_dotenv()
xbot_username = os.environ["XBOT_USERNAME"]
xbot_password = os.environ["XBOT_PASSWORD"]
# token = get_token(xbot_username, xbot_password)
# office_activity_uuids: list = get_activity_info(token)
token = get_token(xbot_username, xbot_password)
activities_info = get_activity_info(token)
messages = []
messages.append("==========市场指令缺失文档==========")
for activity_info in activities_info:
package_viewN_name = activity_info.get("packageViewName")
activities = activity_info.get("activities", "空")
for activity in activities:
name = activity.get("name")
help_link = activity.get("helpLink", "")
if not help_link:
# print(f"{package_viewN_name}: {name} 缺失文档")
messages.append(f"{package_viewN_name}: {name}")
print("\n".join(messages))
# for item in office_activity_uuids:
# print(item.get("packageViewName"), item.get("uuid"))
new_blank_robot("测试-根据需求生成应用", "620156920605310976")
# new_blank_robot("测试-根据需求生成应用", "620156920605310976")
# new_blank_activity()