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, '关闭');
+ }
}
})
}