feat: add user notification center
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user