Przeglądaj źródła

feature/2025-12-26-SEND_USER_PERFORMANCE

ryan 1 tydzień temu
rodzic
commit
20914ca6e0
1 zmienionych plików z 2 dodań i 2 usunięć
  1. 2 2
      common/models/UserPerformance.php

+ 2 - 2
common/models/UserPerformance.php

@@ -271,11 +271,11 @@ class UserPerformance extends \common\components\ActiveRecord
                 'UPDATED_AT' => date('Y-m-d  H:i:s', time()),
                 'REMARK' => DealType::getDealTypeTagById(DealType::USER_PERFORMANCE_SEND),
                 'BOUNTY_PERIOD_NUM' => $bountyPeriodNum,
-                'PAID_PERIOD_NUM' => $bountyPeriodNum-1,
+                'PAID_PERIOD_NUM' => $bountyPeriodNum+1,
             ]);
 
             // 写日志
-            UserPerformanceLogs::changeAmountLogs($id, $amount, $bountyPeriodNum-1, '', DealType::getDealTypeTagById(DealType::USER_PERFORMANCE_SEND));
+            UserPerformanceLogs::changeAmountLogs($id, $amount, $bountyPeriodNum+1, '', DealType::getDealTypeTagById(DealType::USER_PERFORMANCE_SEND));
 
             $transaction->commit();
         } catch (\Exception $e) {