add some features
continuous-integration/drone/push Build is passing

This commit is contained in:
jianxin committed 2024-06-06 18:49:23 +08:00
1 parent 516083882c
commit f6c75a4a7d
1 file changed
+4 -7
+4 -7
View File
@@ -490,12 +490,8 @@ 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())
@@ -549,7 +545,8 @@ def new_blank_robot(name="", user_id="80808032853078016"):
res = public.save_public(SAVE_ROBOT_TEMPLATE)
print(res)
time.sleep(5)
time.sleep(10)
print(f"set developer: {user_id}")
public.add_developer(new_uuid, user_id)
return new_uuid