Commit dc01bee0 dc01bee0d0832f93c593da86d1dbc42b4623f4ff by 杨俊

feat(20240723): 更新短信模版

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