Skip to content

Commit

Permalink
fix exam cliam userBonusCommentUpdate
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaomlove committed Jul 9, 2024
1 parent d47f24e commit ee18528
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Repositories/ExamRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -1257,7 +1257,7 @@ public function cronjobCheckout($ignoreTimeRange = false): int
$uidStr = implode(', ', $uidToUpdateBonus);
$sql = sprintf(
"update %s set seedbonus = case %s, bonuscomment = case %s end where id in (%s)",
$userTable, implode(' ', $userBonusUpdate), implode(",", $userBonusCommentUpdate), $uidStr
$userTable, implode(' ', $userBonusUpdate), implode(' ', $userBonusCommentUpdate), $uidStr
);
$updateResult = DB::update($sql);
do_log(sprintf("$logPrefix, update %s users: %s seedbonus, sql: %s, updateResult: %s", count($uidToUpdateBonus), $uidStr, $sql, $updateResult));
Expand Down

0 comments on commit ee18528

Please sign in to comment.