修复商品库存与网络摘要并校验订购编号
This commit is contained in:
1 parent
28894e0813
commit
d8224ec5b7
15 files changed
+529
-68
No files matched your search
@@ -1,8 +1,9 @@
|
||||
/** 优先使用商品已有描述;缺失时按商品 id 补查,最多等待 5 秒,失败不阻塞配置页。 */
|
||||
import { productId } from "~/lib/product-id.js";
|
||||
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 ``;
|
||||
let n = productId(t.id);
|
||||
if (n === null) return ``;
|
||||
try {
|
||||
let t = await e.get(
|
||||
`/product`,
|
||||
|
||||
Reference in new issue
Block a user