feat(trade): WeChat trade-manage push + delay shipping upload

Receive trade_manage_order_settlement to sync confirm-receive/settle;
wait ~65s and retry on 10060001 before upload_shipping_info.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-07-29 15:37:42 +08:00
parent ed7fd4e013
commit a0a6c14758
10 changed files with 541 additions and 7 deletions
+4 -1
View File
@@ -25,7 +25,10 @@ async function bootstrap() {
app.use(
json({
verify: (req, _res, buf) => {
if (req.url?.includes('/callbacks/wechat/pay')) {
if (
req.url?.includes('/callbacks/wechat/pay') ||
req.url?.includes('/callbacks/wechat/message')
) {
(req as { rawBody?: Buffer }).rawBody = buf;
}
},