add create new robot
continuous-integration/drone/push Build is passing

This commit is contained in:
jianxin committed 2024-06-06 12:51:41 +08:00
1 parent 98939fb310
commit 2eb366c25d
2 files changed
+22 -8

No files matched your search

+16 -8
View File
@@ -124,8 +124,12 @@ def do_bitable_record_add(data) -> None:
action_data["category"] = field.get("field_value")
if field.get("field_id") == "fldopqyyCG":
pass
action_data["status"] = field.get("field_value")
if field.get("field_id") == "fldaxMbywh":
action_data["deal_person"] = (
field.get("field_identity_value").get("users")[0].get("name")
)
print(f"table_id: {table_id}")
print(f"record_id: {record_id}")
@@ -134,13 +138,17 @@ def do_bitable_record_add(data) -> None:
table_id = "tblESHsFZwtiFROB"
process_new_demand.delay(
app_id,
app_secret,
table_id,
record_id,
action_data,
)
# 如果确定开发就创建应用, 根据不同的状态执行不同的任务
if action_data["status"] == "optQgHmA8z":
process_new_robot.delay()
else:
process_new_demand.delay(
app_id,
app_secret,
table_id,
record_id,
action_data,
)
handler = (