feat(assist-platform): adapt to live assist backend query and id dialect
- Support filterBy in corporation search for server-side name/id resolution - Normalize corporation ID with leading dollar prefix for detail and ticket endpoints - Include required query object in ticket search payloads - Improve ticket status mapping for live numeric states - Rebuild plugin mcp bundle
This commit is contained in:
1 parent
37cf784ba1
commit
35552944d1
6 files changed
+47
-17
No files matched your search
@@ -45,7 +45,13 @@ export async function handleTickets(
|
||||
t.ticketId,
|
||||
t.applicant,
|
||||
t.principal || "-",
|
||||
t.state === "已提供" ? "🟢 已提供" : t.state === "待提供" ? "🟡 待提供" : t.state === "已过期" ? "⚪ 已过期" : t.state,
|
||||
t.state === "已提供" || t.state === "1"
|
||||
? "🟢 生效中"
|
||||
: t.state === "待提供" || t.state === "0"
|
||||
? "🟡 待提供"
|
||||
: t.state === "已过期" || t.state === "2"
|
||||
? "⚪ 已结束"
|
||||
: t.state,
|
||||
t.duration ? `${t.duration}h` : "-",
|
||||
t.usePeriodDesc || (t.startTime && t.endTime ? `${new Date(t.startTime).toLocaleDateString()} - ${new Date(t.endTime).toLocaleDateString()}` : "-"),
|
||||
]);
|
||||
|
||||
Reference in new issue
Block a user