diff --git a/app/Console/Commands/Test.php b/app/Console/Commands/Test.php
index 0047c20b..93fcdba7 100644
--- a/app/Console/Commands/Test.php
+++ b/app/Console/Commands/Test.php
@@ -95,8 +95,8 @@ class Test extends Command
*/
public function handle()
{
- $work = new WorkRepository();
- $work->settleRole(6, 1, true);
+ $r = extension_loaded('Zend OPcache');
+ dd($r);
}
}
diff --git a/app/Filament/Resources/System/MedalResource.php b/app/Filament/Resources/System/MedalResource.php
index a621ef9a..6c4d127c 100644
--- a/app/Filament/Resources/System/MedalResource.php
+++ b/app/Filament/Resources/System/MedalResource.php
@@ -99,11 +99,11 @@ class MedalResource extends Resource
Tables\Columns\IconColumn::make('display_on_medal_page')->label(__('label.medal.display_on_medal_page'))->boolean(),
Tables\Columns\TextColumn::make('sale_begin_end_time')
->label(__('medal.fields.sale_begin_end_time'))
- ->formatStateUsing(fn ($record) => new HtmlString(sprintf('%s ~
%s', $record->sale_begin_time ?? '--', $record->sale_end_time ?? '--')))
+ ->formatStateUsing(fn ($record) => new HtmlString(sprintf('%s ~
%s', $record->sale_begin_time ?? nexus_trans('nexus.no_limit'), $record->sale_end_time ?? nexus_trans('nexus.no_limit'))))
,
Tables\Columns\TextColumn::make('bonus_addition_factor')->label(__('medal.fields.bonus_addition_factor')),
Tables\Columns\TextColumn::make('gift_fee_factor')->label(__('medal.fields.gift_fee_factor')),
- Tables\Columns\TextColumn::make('price')->label(__('label.price')),
+ Tables\Columns\TextColumn::make('price')->label(__('label.price'))->formatStateUsing(fn ($state) => number_format($state)),
Tables\Columns\TextColumn::make('duration')->label(__('label.medal.duration')),
diff --git a/app/Repositories/UserRepository.php b/app/Repositories/UserRepository.php
index 723464c5..4868dd71 100644
--- a/app/Repositories/UserRepository.php
+++ b/app/Repositories/UserRepository.php
@@ -462,6 +462,7 @@ class UserRepository extends BaseRepository
$targetUser->usernameChangeLogs()->create($changeLog);
$targetUser->username = $changeLog['username_new'];
$targetUser->save();
+ $this->clearCache($targetUser);
});
return true;
}
@@ -498,6 +499,7 @@ class UserRepository extends BaseRepository
$modComment = date('Y-m-d') . " - " . $message['msg'];
$targetUser->updateWithModComment(['class' => $newClass], $modComment);
Message::add($message);
+ $this->clearCache($targetUser);
});
return true;
@@ -561,7 +563,7 @@ class UserRepository extends BaseRepository
}
}
if ($result) {
- clear_user_cache($user->id, $user->passkey);
+ $this->clearCache($user);
if ($notify) {
Message::add($message);
}
diff --git a/include/constants.php b/include/constants.php
index ddb29fa2..9375b7c2 100644
--- a/include/constants.php
+++ b/include/constants.php
@@ -1,6 +1,6 @@