fix user_name_id_map
continuous-integration/drone/push Build is passing

This commit is contained in:
jianxin committed 2024-06-06 19:35:07 +08:00
1 parent f6c75a4a7d
commit 560515016f
4 files changed
+14 -8

No files matched your search

+4 -4
View File
@@ -147,10 +147,10 @@ def do_bitable_record_add(data) -> None:
if "record_edited" in actions_name and action_data["status"] == "optgKzdQp5":
# 映射对应的用户 id
user_name_id_map = {
"剑心": "0be1759d-d05c-42ad-9ea4-846fc61dc191",
"驿站": "2b694f9f-c3b4-4658-9aad-f714a8ffbc86",
"波音": "668720500393357312",
"虚竹": "620156921033129984",
"剑心": "80808032853078016",
"驿站": "59882836586950656",
"波音": "668720500384968704",
"虚竹": "620156920605310976",
}
user_id = user_name_id_map.get(action_data["deal_person"])
action_data["deal_person_id"] = user_id
Binary file not shown.
+1 -1
View File
@@ -11,7 +11,7 @@
],
"variables": [],
"external_dependencies": [],
"uuid": "ca20d219-74c9-47fa-846b-26e75fd7e7b6",
"uuid": "da64db92-6e77-4e97-9f4e-3859edabc5a7",
"name": "测试-根据需求生成应用",
"internaldependencies": []
}
+9 -3
View File
@@ -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(
"/home/wn/yd/office_xbot_feishu/app/flow_template/robot", "package.json"
)
package_save_path = os.path.join(
"/home/wn/yd/office_xbot_feishu/app/flow_template/robot", "blank.bot"
)
# 2. 创建新公有云新 UUID
new_uuid = str(uuid.uuid4())
@@ -638,5 +642,7 @@ if __name__ == "__main__":
# for item in office_activity_uuids:
# print(item.get("packageViewName"), item.get("uuid"))
new_blank_robot("测试-根据需求生成应用")
new_blank_robot("测试-根据需求生成应用", "620156920605310976")
# new_blank_activity()