feat(rock): 同一提货号过期后重取二维码
轮询绑定时向 0666 换一条新的活动链接,提货号不变。下游只展示返回的链接。 Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user