You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
<?php
|
|
namespace Base\Service;
|
|
|
|
use Base\Facade\Request;
|
|
|
|
class UserService {
|
|
|
|
public function isAccountExist($account)
|
|
{
|
|
$user = M('user', 'tab_')->where(['_logic' => 'or', 'account' => $account, 'phone' => $account])->find();
|
|
if ($user) {
|
|
return true;
|
|
}
|
|
return false;
|
|
}
|
|
|
|
} |