Browse Source

feat: UN-71: 会员-奖金列表调整

kevin 1 year ago
parent
commit
3a9e530c7d
1 changed files with 2 additions and 1 deletions
  1. 2 1
      common/models/Period.php

+ 2 - 1
common/models/Period.php

@@ -550,7 +550,8 @@ class Period extends \common\components\ActiveRecord
             return false;
             return false;
         }
         }
         //上1期奖金未发放,限制不能挂网
         //上1期奖金未发放,限制不能挂网
-        if(!$this->isLastSent($this->periodNum)){
+        $periodLast = self::findOneAsArray(['PERIOD_NUM' => $this->periodNum - 1]);
+        if ($periodLast['IS_SENT'] != self::SEND_FINISH){
             return false;
             return false;
         }
         }
         return true;
         return true;