feat: add user notification center

This commit is contained in:
hajimi
2026-08-03 21:44:30 +08:00
parent 17720e86e2
commit 9df5f5f620
17 changed files with 1401 additions and 5 deletions
@@ -16,6 +16,7 @@ namespace app\adminapi\logic\user;
use app\common\enum\user\AccountLogEnum;
use app\common\enum\user\UserTerminalEnum;
use app\common\logic\AccountLogLogic;
use app\common\service\notice\UserNoticeService;
use app\common\logic\BaseLogic;
use app\common\model\user\User;
use think\facade\Db;
@@ -178,6 +179,9 @@ class UserLogic extends BaseLogic
'',
$remark
);
if ($type === 'points' && $action == AccountLogEnum::INC) {
UserNoticeService::adminPoints((int) $user->id, (int) $num, $remark);
}
Db::commit();
return true;