Commit dc01bee0 dc01bee0d0832f93c593da86d1dbc42b4623f4ff by 杨俊

feat(20240723): 更新短信模版

1. 更新注册验证码
2. 更新登录验证码
3. 更新换绑手机验证码
4. 更新认证审核通过/拒绝通知
5. 更新作品确认合作/不合适通知
1 parent 2e996b01
......@@ -40,7 +40,7 @@ protected function info(SmsRequest $request): void
throw new ValidationException(BusinessCode::ACCOUNT_NOT_EXISTS);
}
$request->sendSms(['template' => $request->phoneNumber->inChineseMainland() ? 'SMS_195310252' : 'SMS_234031047', 'content' => '验证码${code},您正在尝试变更重要信息,请妥善保管账户信息。']);
$request->sendSms(['template' => 'SMS_469070643', 'content' => '验证码${code},您正在进行身份验证,需尽快操作,请勿泄漏信息。']);
}
/**
......@@ -55,7 +55,7 @@ protected function changePhone(SmsRequest $request): void
throw new ValidationException(BusinessCode::PHONE_EXISTS);
}
$request->sendSms(['template' => $request->phoneNumber->inChineseMainland() ? 'SMS_195310252' : 'SMS_234031047', 'content' => '验证码${code},您正在尝试变更重要信息,请妥善保管账户信息。']);
$request->sendSms(['template' => 'SMS_469070643', 'content' => '验证码${code},您正在进行身份验证,需尽快操作,请勿泄漏信息。']);
}
/**
......@@ -69,7 +69,7 @@ protected function register(SmsRequest $request): void
throw new ValidationException(BusinessCode::PHONE_EXISTS);
}
$request->sendSms(['template' => $request->phoneNumber->inChineseMainland() ? 'SMS_195310254' : 'SMS_219400324', 'content' => '验证码${code},您正在注册成为新用户,感谢您的支持!']);
$request->sendSms(['template' => 'SMS_468855711', 'content' => '验证码${code},您正在注册成为新用户,感谢您的支持!']);
}
/**
......@@ -83,6 +83,6 @@ protected function login(SmsRequest $request): void
throw new ValidationException(BusinessCode::ACCOUNT_NOT_EXISTS);
}
$request->sendSms(['template' => $request->phoneNumber->inChineseMainland() ? 'SMS_195310256' : 'SMS_223175300', 'content' => '验证码${code},您正在登录,若非本人操作,请勿泄露。']);
$request->sendSms(['template' => 'SMS_468870746', 'content' => '验证码${code},您正在登录,若非本人操作,请勿泄露。']);
}
}
......
......@@ -43,11 +43,10 @@ public function toSms(User $notifiable): array
return [
'phone' => $notifiable->getPhoneNotificationKey(),
'data' => [
'template' => 'SMS_463623202',
'content' => '恭喜,您参与的试唱《${song_name}》已达成合作!请在海星试唱应用内,和厂牌:${brand_name},商谈进一步合作。',
'template' => 'SMS_468940680',
'content' => '恭喜,您参与的试唱《${song_name}》歌曲已达成合作!请耐心等待运营人员与您联系。',
'data' => [
'song_name' => $this->work->getAttribute('activity_name'),
'brand_name' => $this->work->getAttribute('project')?->getAttribute('name')
]
]
];
......
......@@ -44,8 +44,8 @@ public function toSms(User $notifiable): array
return [
'phone' => $notifiable->getPhoneNotificationKey(),
'data' => [
'template' => 'SMS_462415223',
'content' => '感谢您参与试唱《${song_name}》,很遗憾暂未能成合作。欢迎您前往海星试唱尝试更多歌曲。',
'template' => 'SMS_469015661',
'content' => '您参与的试唱《${song_name}》歌曲,未达成合作。泡泡留声邀您试听其他歌曲,期待您的再次试唱。',
'data' => ['song_name' => $this->work->getAttribute('activity_name')]
]
];
......
......@@ -41,8 +41,8 @@ public function toSms(User $notifiable): array
return [
'phone' => $notifiable->getPhoneNotificationKey(),
'data' => [
'template' => 'SMS_254165982',
'content' => '您的账号审核未通过,请前往海星试唱APP/小程序查看详情,修改审核信息后重新提交。'
'template' => 'SMS_468995723',
'content' => '您的账号审核未通过,请前往泡泡留声查看详情,请修改后再次提交哦!'
]
];
}
......
......@@ -41,8 +41,8 @@ public function toSms(User $notifiable): array
return [
'phone' => $notifiable->getPhoneNotificationKey(),
'data' => [
'template' => 'SMS_254100995',
'content' => '您的账号审核已通过,请前往海星试唱APP/小程序挑选您喜欢的歌曲吧!'
'template' => 'SMS_468935661',
'content' => '您的账号审核已通过,请前往泡泡留声挑选您喜欢的歌曲吧!'
]
];
}
......