feat(trade): upload WeChat mini program shipping info

Hook SHIPPING and on-site pickup to upload_shipping_info for settlement unlock.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-07-29 14:35:21 +08:00
parent ca621c9db8
commit bf9cd1bffd
9 changed files with 435 additions and 0 deletions
@@ -94,4 +94,18 @@ export class WechatMockProvider implements IWechatProvider {
color: { dark: '#1f1a17', light: '#ffffff' },
});
}
async uploadShippingInfo() {
return { errcode: 0, errmsg: 'ok' };
}
async getDeliveryList() {
return [
{ deliveryId: 'SF', deliveryName: '顺丰速运' },
{ deliveryId: 'STO', deliveryName: '申通快递' },
{ deliveryId: 'YTO', deliveryName: '圆通速递' },
{ deliveryId: 'ZTO', deliveryName: '中通快递' },
{ deliveryId: 'YD', deliveryName: '韵达速递' },
];
}
}