Skip to content

Commit

Permalink
删除不必要的类
Browse files Browse the repository at this point in the history
  • Loading branch information
liufei-ereach committed Dec 12, 2023
1 parent 3625457 commit e5aa6cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Listeners/HistoryListeners.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public function exec(?User $user, $money) {
$userMoneyHistory->source_desc = $this->sourceDesc;
$userMoneyHistory->balance_money = 0;
$userMoneyHistory->last_money = $user->money;
$userMoneyHistory->create_user_id = $user->id;
$userMoneyHistory->create_user_id = $user->create_user_id ? $user->create_user_id : $user->id;
$userMoneyHistory->change_time = Date("Y-m-d H:i:s");
$userMoneyHistory->save();
}
Expand Down

0 comments on commit e5aa6cc

Please sign in to comment.