1 parent
ae3428d422
commit
60d4f2a8e3
3 files changed
+50
-14
No files matched your search
@@ -552,6 +552,8 @@ def new_blank_robot(name="", user_id="80808032853078016"):
|
||||
time.sleep(5)
|
||||
public.add_developer(new_uuid, user_id)
|
||||
|
||||
return new_uuid
|
||||
|
||||
|
||||
def new_blank_activity(name="", user_id=""):
|
||||
"""新建一个指令"""
|
||||
@@ -560,12 +562,8 @@ def new_blank_activity(name="", user_id=""):
|
||||
public = Client(public_username, public_password)
|
||||
|
||||
# 1. 设置文件上传模板文件路径
|
||||
schema_save_path = os.path.join(
|
||||
"/home/wn/yd/xybot-private-scripts/data/flow_template/activity", "package.json"
|
||||
)
|
||||
package_save_path = os.path.join(
|
||||
"/home/wn/yd/xybot-private-scripts/data/flow_template/activity", "activity.bot"
|
||||
)
|
||||
schema_save_path = os.path.join("/code/app/flow_template/activity", "package.json")
|
||||
package_save_path = os.path.join("/code/app/flow_template/activity", "activity.bot")
|
||||
|
||||
# 3. 公有云生成指令编码和 UUID
|
||||
activity_package_code = public.generate_packagename()
|
||||
@@ -628,8 +626,10 @@ def new_blank_activity(name="", user_id=""):
|
||||
SAVE_ROBOT_TEMPLATE["robotPackage"]["externalDependencies"] = []
|
||||
public.save_public(SAVE_ROBOT_TEMPLATE)
|
||||
|
||||
time.sleep(2)
|
||||
public.add_developer(new_robot_uuid, "80808032853078016")
|
||||
time.sleep(10)
|
||||
public.add_developer(new_robot_uuid, user_id)
|
||||
|
||||
return new_robot_uuid
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
||||
Reference in new issue
Block a user