24 lines
432 B
PHP
24 lines
432 B
PHP
<?php
|
||
|
||
class SalesModel
|
||
{
|
||
/**
|
||
* 手机号是否注册过
|
||
* 已注册返回 true,否则 false
|
||
*/
|
||
public function isRegisterPhone($agent_id, $channel_id, $phone)
|
||
{
|
||
$sql = 'select * from sales_user where saus_agentid = ? AND saus_channelid = ? AND saus_tel = ?';
|
||
$result = Db::query($sql, [$agent_id, $channel_id, $phone]);
|
||
|
||
if($result)
|
||
return true;
|
||
|
||
return false;
|
||
}
|
||
|
||
public function sendPhoneCode()
|
||
{
|
||
|
||
}
|
||
} |