first commit

This commit is contained in:
cieanyau committed 2026-11-06 00:04:38 +08:00
commit db5762abd4
687 files changed
+171307

No files matched your search

+26
View File
@@ -0,0 +1,26 @@
async function e(e, t) {
if (typeof t.description == `string`) return t.description;
let n = Number(t.id);
if (!Number.isSafeInteger(n) || n <= 0) return ``;
try {
let t = await e.get(
`/product`,
{
product_ids: [n],
page: 1,
limit: 1,
},
!1,
{
timeoutMs: 5e3,
},
),
r = Array.isArray(t?.list)
? t.list.find((e) => e && Number(e.id) === n)
: void 0;
return typeof r?.description == `string` ? r.description : ``;
} catch {
return ``;
}
}
export { e as t };