mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-08 19:21:40 +09:00
Enable sending SMS from ncenterlite to phone number in member profile
This commit is contained in:
parent
1db4a9d752
commit
25162f9041
5 changed files with 28 additions and 10 deletions
|
|
@ -1452,7 +1452,21 @@ class ncenterliteController extends ncenterlite
|
|||
$member_info = getModel('member')->getMemberInfoByMemberSrl($args->member_srl);
|
||||
if($config->variable_name)
|
||||
{
|
||||
$phone_number = $member_info->{$config->variable_name}[0].$member_info->{$config->variable_name}[1].$member_info->{$config->variable_name}[2];
|
||||
if($config->variable_name === '#')
|
||||
{
|
||||
$phone_country = $member_info->phone_country;
|
||||
$phone_number = $member_info->phone_number;
|
||||
|
||||
// Sending SMS outside of Korea is currently not supported.
|
||||
if($phone_country !== 'KOR')
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$phone_number = implode('', $member_info->{$config->variable_name});
|
||||
}
|
||||
|
||||
// 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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue