mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 02:31:40 +09:00
Add checks for invalid and duplicate phone numbers
This commit is contained in:
parent
1ee59e4196
commit
8cf0903065
7 changed files with 71 additions and 9 deletions
|
|
@ -453,6 +453,18 @@ class memberModel extends member
|
|||
return $output->data->member_srl;
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Get member_srl corresponding to phone number
|
||||
*/
|
||||
function getMemberSrlByPhoneNumber($phone_number, $phone_country = null)
|
||||
{
|
||||
$args = new stdClass();
|
||||
$args->phone_number = $phone_number;
|
||||
$args->phone_country = $phone_country;
|
||||
$output = executeQueryArray('member.getMemberSrl', $args);
|
||||
return count($output->data) ? array_first($output->data)->member_srl : null;
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Get member_srl corresponding to nickname
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue