From 43b35b4e7745d7b0ea0d5726095a17261b38701c Mon Sep 17 00:00:00 2001 From: xiaomlove Date: Fri, 10 Feb 2023 16:52:30 +0800 Subject: [PATCH] fix medal save btn --- app/Repositories/UserRepository.php | 1 + include/constants.php | 2 +- include/functions.php | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/app/Repositories/UserRepository.php b/app/Repositories/UserRepository.php index 4868dd71..9d2e6f6f 100644 --- a/app/Repositories/UserRepository.php +++ b/app/Repositories/UserRepository.php @@ -613,6 +613,7 @@ class UserRepository extends BaseRepository ]; } UserBanLog::query()->insert($userBanLogs); + do_action("user_delete", $id); return true; } diff --git a/include/constants.php b/include/constants.php index 9375b7c2..9453d93e 100644 --- a/include/constants.php +++ b/include/constants.php @@ -1,6 +1,6 @@ ', nexus_trans('label.save')); + $medalImages[] = sprintf('
', nexus_trans('label.save')); } return $wrapBefore . implode('', $medalImages) . $wrapAfter; }