Parcourir la source

团队查询期数

theo il y a 3 ans
Parent
commit
8ae22ae3be
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      frontendApi/modules/v1/controllers/BonusController.php

+ 1 - 1
frontendApi/modules/v1/controllers/BonusController.php

@@ -122,7 +122,7 @@ class BonusController extends BaseController {
         // 判断当前时间,是否临近封期,否则隐藏
         // 判断当前时间,是否临近封期,否则隐藏
         $nowTs = time();
         $nowTs = time();
         $currentPeriodEnd = Period::getEndTime($periodNum);
         $currentPeriodEnd = Period::getEndTime($periodNum);
-        if ($nowTs + 432000 <= $currentPeriodEnd || $currentPeriodEnd < $nowTs) {
+        if ($nowTs + 432000 <= $currentPeriodEnd || $currentPeriodEnd < $nowTs || ($periodNum % 2)) {
             return static::notice(['user' => [],'team'=>[]]);
             return static::notice(['user' => [],'team'=>[]]);
         }
         }
         $userInfo = User::getEnCodeInfo($userId);
         $userInfo = User::getEnCodeInfo($userId);