Skip to content

Commit

Permalink
修改 未启用money插件导致补签报错的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
liufei-ereach committed Feb 5, 2024
1 parent 80869c8 commit 65794ae
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Listeners/SupplementaryCheckin.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,9 @@ public function supplementCheckin(SupplementaryCheckinEvent $event): UserCheckin
}
$user->total_checkin_count=$totalCheckinCount + 1;
$user->total_continuous_checkin_count=$totalContinuousCheckinCount + $totalContinuousCheckinCountHistory + 1;
if (!class_exists('AntoineFr\Money\Event\MoneyUpdated')) {
unset($user->money);
}
$user->save();

// 记录补签数据
Expand Down

0 comments on commit 65794ae

Please sign in to comment.