Browse Source

fix: 活动时间判断逻辑调整

Signed-off-by: tangshizhe <48740614+tangshizhe@users.noreply.github.com>
tangshizhe 4 months ago
parent
commit
6b34ab2d3a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/web/templates/order/pc/paySuccess.html

+ 1 - 1
src/web/templates/order/pc/paySuccess.html

@@ -501,7 +501,7 @@
                 const currentTime = Math.floor(Date.now() / 1000)
                 // 判断是否过期
                 const { startTime, endTime } = data
-                if (startTime < currentTime < endTime) {
+                if (startTime < currentTime && currentTime < endTime) {
                   this.isShowGift = true
                 }
                 else {