1 parent
fedff41fe8
commit
514df74817
4 files changed
+15
-11
No files matched your search
+12
-8
@@ -490,8 +490,12 @@ def new_blank_robot(name="", user_id="80808032853078016"):
|
||||
public = Client(public_username, public_password)
|
||||
|
||||
# 1. 设置文件上传模板文件路径
|
||||
schema_save_path = os.path.join("/code/app/flow_template/robot", "package.json")
|
||||
package_save_path = os.path.join("/code/app/flow_template/robot", "blank.bot")
|
||||
schema_save_path = os.path.join(
|
||||
"/code/app/flow_template/robot", "package.json"
|
||||
)
|
||||
package_save_path = os.path.join(
|
||||
"/code/app/flow_template/robot", "blank.bot"
|
||||
)
|
||||
|
||||
# 2. 创建新公有云新 UUID
|
||||
new_uuid = str(uuid.uuid4())
|
||||
@@ -545,7 +549,7 @@ def new_blank_robot(name="", user_id="80808032853078016"):
|
||||
res = public.save_public(SAVE_ROBOT_TEMPLATE)
|
||||
print(res)
|
||||
|
||||
time.sleep(2)
|
||||
time.sleep(5)
|
||||
public.add_developer(new_uuid, user_id)
|
||||
|
||||
|
||||
@@ -632,10 +636,10 @@ 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)
|
||||
for item in office_activity_uuids:
|
||||
print(item.get("packageViewName"), item.get("uuid"))
|
||||
# token = get_token(xbot_username, xbot_password)
|
||||
# office_activity_uuids: list = get_activity_info(token)
|
||||
# for item in office_activity_uuids:
|
||||
# print(item.get("packageViewName"), item.get("uuid"))
|
||||
|
||||
# new_blank_robot()
|
||||
new_blank_robot("测试-根据需求生成应用")
|
||||
# new_blank_activity()
|
||||
Reference in new issue
Block a user