From ca89b62ce640cea2134387ec48714c4f5da4186a Mon Sep 17 00:00:00 2001 From: zhangds Date: Wed, 15 May 2024 11:42:02 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=A2=9E=E5=8A=A0=20=E6=9C=80=E6=96=B0?= =?UTF-8?q?=E8=8E=B7=E5=8F=96=E5=95=86=E5=93=81=E7=8A=B6=E6=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packkey/redPackets.html | 13 +++++++++++++ redPackets.html | 13 +++++++++++++ 2 files changed, 26 insertions(+) diff --git a/packkey/redPackets.html b/packkey/redPackets.html index 947f835..1652646 100644 --- a/packkey/redPackets.html +++ b/packkey/redPackets.html @@ -164,6 +164,19 @@ this.goodsInfo.available = 9; localStorage.setItem('goodsInfo', JSON.stringify(this.goodsInfo)); } + } else { + if (res.code == 403) { + if (this.backAble) { + this.tip(message, 2, '关闭'); + setTimeout(() => { + window.location.href = localStorage.getItem('entryLink'); + }, 3000); + } else { + this.tip(message, 2, '关闭'); + } + } else { + this.tip(message, 2, '关闭'); + } } }) } diff --git a/redPackets.html b/redPackets.html index 50d702b..a0da959 100644 --- a/redPackets.html +++ b/redPackets.html @@ -163,6 +163,19 @@ this.goodsInfo.available = 9; localStorage.setItem('goodsInfo', JSON.stringify(this.goodsInfo)); } + } else { + if (res.code == 403) { + if (this.backAble) { + this.tip(message, 2, '关闭'); + setTimeout(() => { + window.location.href = localStorage.getItem('entryLink'); + }, 3000); + } else { + this.tip(message, 2, '关闭'); + } + } else { + this.tip(message, 2, '关闭'); + } } }) }