From 4453a9e63e8e176c70c432b03fd4ba3ebf00a04c Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期四, 09 二月 2023 14:55:20 +0800 Subject: [PATCH] 2023-02-09 --- src/tabviews/custom/components/carousel/data-card/index.jsx | 8 ++++++-- 1 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/tabviews/custom/components/carousel/data-card/index.jsx b/src/tabviews/custom/components/carousel/data-card/index.jsx index 90e9116..9bed413 100644 --- a/src/tabviews/custom/components/carousel/data-card/index.jsx +++ b/src/tabviews/custom/components/carousel/data-card/index.jsx @@ -194,7 +194,7 @@ this.timer && this.timer.stop() } - openModal = () => { + openModal = (ErrCode) => { const { config, data } = this.state if (config.wrap.display !== 'modal' || !data || data.length === 0) return @@ -208,6 +208,10 @@ localStorage.setItem(code, data[0].$$uuid + data.length) Api.getAppVersion(true) + + if (ErrCode === '-1') { + return + } } setTimeout(() => { @@ -314,7 +318,7 @@ }), loading: false }, () => { - this.openModal() + this.openModal(result.ErrCode) }) } else { this.setState({ -- Gitblit v1.8.0