mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-03 09:14:48 +09:00
Fix type error when calling isValidPhoneNumber() from member controller
https://xetown.com/questions/1799857
This commit is contained in:
parent
e96338fd60
commit
daffb6d4ec
1 changed files with 2 additions and 2 deletions
|
|
@ -3652,7 +3652,7 @@ class MemberController extends Member
|
||||||
{
|
{
|
||||||
return new BaseObject(-1, 'msg_invalid_phone_number');
|
return new BaseObject(-1, 'msg_invalid_phone_number');
|
||||||
}
|
}
|
||||||
if ($phone_country === 'KOR' && !Rhymix\Framework\Korea::isValidPhoneNumber($phone_number))
|
if ($phone_country === 'KOR' && !Rhymix\Framework\Korea::isValidPhoneNumber($phone_number ?? ''))
|
||||||
{
|
{
|
||||||
return new BaseObject(-1, 'msg_invalid_phone_number');
|
return new BaseObject(-1, 'msg_invalid_phone_number');
|
||||||
}
|
}
|
||||||
|
|
@ -4036,7 +4036,7 @@ class MemberController extends Member
|
||||||
{
|
{
|
||||||
$args->phone_country = Rhymix\Framework\i18n::getCountryCodeByCallingCode($args->phone_country);
|
$args->phone_country = Rhymix\Framework\i18n::getCountryCodeByCallingCode($args->phone_country);
|
||||||
}
|
}
|
||||||
if ($args->phone_country === 'KOR' && !Rhymix\Framework\Korea::isValidPhoneNumber($args->phone_number))
|
if ($args->phone_country === 'KOR' && !Rhymix\Framework\Korea::isValidPhoneNumber($args->phone_number ?? ''))
|
||||||
{
|
{
|
||||||
if ($required)
|
if ($required)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue