落地陆运私聊文字询价:选项核对后再建单查价,并按线路拉产品进群。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-09-17 16:23:30 +08:00
co-authored by Cursor
parent 83b907c4b8
commit be95d823a2
52 changed files with 4534 additions and 76 deletions
+11
View File
@@ -213,6 +213,17 @@ class HttpLedger:
return [dict(x) for x in rows if isinstance(x, dict)]
return []
def match_land_staff(self, *, route_category: str) -> list[dict[str, Any]]:
"""主账按线路类别返回启用的陆运产品岗。"""
out = self._post(
"/inquiry/agent/staff/matchLand",
{"routeCategory": route_category, "线路类别": route_category},
)
rows = out.get("staff") or out.get("result") or []
if isinstance(rows, list):
return [dict(x) for x in rows if isinstance(x, dict)]
return []
def get_staff_by_wecom_id(self, *, wecom_id: str) -> dict[str, Any]:
out = self._post("/inquiry/agent/staff/byWecom", {"wecomId": wecom_id})
if out.get("name") or out.get("wecomId"):