fix(claim): 领取页展示游戏角色名,并说明乐玩免扫码场景
持久化 affiliate_dash roleName/gameChannel;免扫码授权时明确提示,有绑定链接时提交前仍可显示二维码。 Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -67,7 +67,15 @@ export default function ClaimPage() {
|
||||
if (expectedUid) {
|
||||
setUidInput(expectedUid)
|
||||
}
|
||||
await generateQRCode(String(nextDetail.affiliateDash?.bindUrl || '').trim())
|
||||
const bindUrl = String(nextDetail.affiliateDash?.bindUrl || '').trim()
|
||||
const qrUrl = String(nextDetail.affiliateDash?.qrUrl || '').trim()
|
||||
if (bindUrl) {
|
||||
await generateQRCode(bindUrl)
|
||||
} else if (qrUrl) {
|
||||
setQrCodeDataUrl(qrUrl)
|
||||
} else {
|
||||
setQrCodeDataUrl('')
|
||||
}
|
||||
},
|
||||
[generateQRCode],
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user