announce log menu only show when enabled

This commit is contained in:
xiaomlove
2025-09-22 20:13:56 +07:00
parent d906f73b03
commit f30112264a
2 changed files with 17 additions and 4 deletions
+8 -4
View File
@@ -234,9 +234,13 @@ class CalculateUserSeedBonus implements ShouldQueue
do_log("clickhouse no host");
return;
}
$client = app(\ClickHouseDB\Client::class);
$fields = ['business_type', 'uid', 'old_total_value', 'value', 'new_total_value', 'comment', 'created_at'];
$client->insert("bonus_logs", $bonusLogInsert, $fields);
do_log("insertIntoClickHouseBulk done, created_at: {$bonusLogInsert[0]['created_at']}");
try {
$client = app(\ClickHouseDB\Client::class);
$fields = ['business_type', 'uid', 'old_total_value', 'value', 'new_total_value', 'comment', 'created_at'];
$client->insert("bonus_logs", $bonusLogInsert, $fields);
do_log("insertIntoClickHouseBulk done, created_at: {$bonusLogInsert[0]['created_at']}");
} catch (\Exception $e) {
do_log($e->getMessage(), 'error');
}
}
}