1 parent
fedff41fe8
commit
514df74817
4 files changed
+15
-11
No files matched your search
Binary file not shown.
@@ -11,7 +11,7 @@
|
|||||||
],
|
],
|
||||||
"variables": [],
|
"variables": [],
|
||||||
"external_dependencies": [],
|
"external_dependencies": [],
|
||||||
"uuid": "e4e85bb8-2da3-4824-a9eb-8d7da8fefaba",
|
"uuid": "ca20d219-74c9-47fa-846b-26e75fd7e7b6",
|
||||||
"name": "测试-新建",
|
"name": "测试-根据需求生成应用",
|
||||||
"internaldependencies": []
|
"internaldependencies": []
|
||||||
}
|
}
|
||||||
+1
-1
@@ -276,4 +276,4 @@ def process_new_demand(app_id, app_secret, table_id, record_id, data):
|
|||||||
|
|
||||||
@shared_task(include_result=False)
|
@shared_task(include_result=False)
|
||||||
def process_new_robot():
|
def process_new_robot():
|
||||||
new_blank_robot(name="测试-需求创建机器人")
|
new_blank_robot("测试-根据需求生成应用")
|
||||||
+12
-8
@@ -490,8 +490,12 @@ def new_blank_robot(name="", user_id="80808032853078016"):
|
|||||||
public = Client(public_username, public_password)
|
public = Client(public_username, public_password)
|
||||||
|
|
||||||
# 1. 设置文件上传模板文件路径
|
# 1. 设置文件上传模板文件路径
|
||||||
schema_save_path = os.path.join("/code/app/flow_template/robot", "package.json")
|
schema_save_path = os.path.join(
|
||||||
package_save_path = os.path.join("/code/app/flow_template/robot", "blank.bot")
|
"/code/app/flow_template/robot", "package.json"
|
||||||
|
)
|
||||||
|
package_save_path = os.path.join(
|
||||||
|
"/code/app/flow_template/robot", "blank.bot"
|
||||||
|
)
|
||||||
|
|
||||||
# 2. 创建新公有云新 UUID
|
# 2. 创建新公有云新 UUID
|
||||||
new_uuid = str(uuid.uuid4())
|
new_uuid = str(uuid.uuid4())
|
||||||
@@ -545,7 +549,7 @@ def new_blank_robot(name="", user_id="80808032853078016"):
|
|||||||
res = public.save_public(SAVE_ROBOT_TEMPLATE)
|
res = public.save_public(SAVE_ROBOT_TEMPLATE)
|
||||||
print(res)
|
print(res)
|
||||||
|
|
||||||
time.sleep(2)
|
time.sleep(5)
|
||||||
public.add_developer(new_uuid, user_id)
|
public.add_developer(new_uuid, user_id)
|
||||||
|
|
||||||
|
|
||||||
@@ -632,10 +636,10 @@ if __name__ == "__main__":
|
|||||||
dotenv.load_dotenv()
|
dotenv.load_dotenv()
|
||||||
xbot_username = os.environ["XBOT_USERNAME"]
|
xbot_username = os.environ["XBOT_USERNAME"]
|
||||||
xbot_password = os.environ["XBOT_PASSWORD"]
|
xbot_password = os.environ["XBOT_PASSWORD"]
|
||||||
token = get_token(xbot_username, xbot_password)
|
# token = get_token(xbot_username, xbot_password)
|
||||||
office_activity_uuids: list = get_activity_info(token)
|
# office_activity_uuids: list = get_activity_info(token)
|
||||||
for item in office_activity_uuids:
|
# for item in office_activity_uuids:
|
||||||
print(item.get("packageViewName"), item.get("uuid"))
|
# print(item.get("packageViewName"), item.get("uuid"))
|
||||||
|
|
||||||
# new_blank_robot()
|
new_blank_robot("测试-根据需求生成应用")
|
||||||
# new_blank_activity()
|
# new_blank_activity()
|
||||||
Reference in new issue
Block a user