优化发码回调,失败停止整个流程

This commit is contained in:
yml2213
2026-07-08 16:31:19 +08:00
parent 2a5080c6c4
commit 647f038061
11 changed files with 314 additions and 55 deletions
@@ -638,7 +638,8 @@ function hasKuaishouIndustryVoucherContext(value: JsonObject): boolean {
: {};
const voucherCode = String(voucher.voucherCode || voucher.eticketId || "").trim();
const status = String(voucher.status || "UNUSED").trim().toUpperCase();
return Boolean(voucherCode && status !== "DESTROYED");
const sendCallbackStatus = String(voucher.sendCallbackStatus || "success").trim().toLowerCase();
return Boolean(voucherCode && status !== "DESTROYED" && sendCallbackStatus === "success");
}
export function buildDispatchStockItems(