update dependencies basic

This commit is contained in:
xiaomlove
2024-12-25 22:30:55 +08:00
parent b9f5641985
commit 183d362076
14 changed files with 3628 additions and 4306 deletions
+1 -1
View File
@@ -48,7 +48,7 @@ class CommentRepository extends BaseRepository
$target->save();
$userUpdate = [
'seedbonus' => DB::raw('seedbonus + ' . Setting::get('bonus.addcomment')),
'seedbonus' => NexusDB::raw('seedbonus + ' . Setting::get('bonus.addcomment')),
'last_comment' => Carbon::now(),
];
$user->update($userUpdate);
+1 -1
View File
@@ -50,7 +50,7 @@ class DashboardRepository extends BaseRepository
$result[$name] = [
'name' => $name,
'text' => nexus_trans("dashboard.system_info.$name"),
'value' => DB::select(DB::raw('select version() as info'))[0]->info,
'value' => NexusDB::select('select version() as info')[0]['info'],
];
// $name = 'os';
// $result[$name] = [
+1 -1
View File
@@ -486,7 +486,7 @@ class HitAndRunRepository extends BaseRepository
private function getCommentUpdateRaw($comment): \Illuminate\Database\Query\Expression
{
return DB::raw(sprintf("if (comment = '', '%s', concat('\n', '%s', comment))", $comment, $comment));
return NexusDB::raw(sprintf("if (comment = '', '%s', concat('\n', '%s', comment))", $comment, $comment));
}
private function getCanPardonStatus(): array