落地陆运私聊文字询价:选项核对后再建单查价,并按线路拉产品进群。
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -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"):
|
||||
|
||||
Reference in New Issue
Block a user