feat(rock): 同一提货号过期后重取二维码

轮询绑定时向 0666 换一条新的活动链接,提货号不变。下游只展示返回的链接。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
yml2213
2026-10-06 18:08:27 +08:00
co-authored by Cursor
parent 4b8fc76f36
commit c85b9f4173
4 changed files with 197 additions and 6 deletions
+6
View File
@@ -219,6 +219,12 @@ export default function Delivery() {
if (!silent) setCheckingBind(true)
try {
const res = await deliveryApi.getBindResult(decodedOrderNo, bindResult.bind_uuid, deliveryAuth)
if (res.bind_url) {
setBindResult((prev) => {
if (!prev || prev.bind_url === res.bind_url) return prev
return { ...prev, bind_url: res.bind_url, qr_url: res.qr_url || prev.qr_url }
})
}
if (res.bound) {
setBoundInfo({
bound: true,