mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-08 19:21:40 +09:00
회원의 전화번호가 한국번호인지 한번 더 검사하고 문자 전송할 수 있도록 함
This commit is contained in:
parent
4cb9d8e8b3
commit
f737e726aa
1 changed files with 7 additions and 0 deletions
|
|
@ -1234,6 +1234,13 @@ class ncenterliteController extends ncenterlite
|
|||
if($config->variable_name)
|
||||
{
|
||||
$phone_number = $member_info->{$config->variable_name}[0].$member_info->{$config->variable_name}[1].$member_info->{$config->variable_name}[2];
|
||||
|
||||
// Check if a Korean phone number contains a valid area code and the correct number of digits.
|
||||
$phone_format = Rhymix\Framework\Korea::isValidPhoneNumber($phone_number);
|
||||
if($phone_format === false)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
$sms->addTo($phone_number);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue