mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-03 14:10:57 +08:00
job remove sqlesc
This commit is contained in:
@@ -45,8 +45,8 @@ class RemoveUserDonorStatus
|
||||
$user->save();
|
||||
clear_user_cache($user->id);
|
||||
publish_model_event(ModelEventEnum::USER_UPDATED, $user->id);
|
||||
$subject = sqlesc(nexus_trans("cleanup.msg_donor_status_removed", [], $locale));
|
||||
$msg = sqlesc(nexus_trans("cleanup.msg_donor_status_removed_body", [], $locale));
|
||||
$subject = nexus_trans("cleanup.msg_donor_status_removed", [], $locale);
|
||||
$msg = nexus_trans("cleanup.msg_donor_status_removed_body", [], $locale);
|
||||
Message::add([
|
||||
'sender' => 0,
|
||||
'receiver' => $user->id,
|
||||
|
||||
@@ -43,8 +43,8 @@ class RemoveUserVipStatus
|
||||
$user->vip_until = null;
|
||||
if ($user->class <= User::CLASS_VIP) {
|
||||
$user->class = User::CLASS_USER;
|
||||
$subject = sqlesc(nexus_trans("cleanup.msg_vip_status_removed", [], $locale));
|
||||
$msg = sqlesc(nexus_trans("cleanup.msg_vip_status_removed_body", [], $locale));
|
||||
$subject = nexus_trans("cleanup.msg_vip_status_removed", [], $locale);
|
||||
$msg = nexus_trans("cleanup.msg_vip_status_removed_body", [], $locale);
|
||||
$message = [
|
||||
'sender' => 0,
|
||||
'receiver' => $user->id,
|
||||
|
||||
Reference in New Issue
Block a user