1
This commit is contained in:
parent
911e224782
commit
ca5dfa1349
@ -33,6 +33,18 @@ class User extends BaseModel {
|
|||||||
return $row ? $row : null;
|
return $row ? $row : null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static function findByAddress($address)
|
||||||
|
{
|
||||||
|
$row = SqlHelper::ormSelectOne
|
||||||
|
(myself()->_getMysql($targetId),
|
||||||
|
't_user',
|
||||||
|
array(
|
||||||
|
'address' => $address
|
||||||
|
)
|
||||||
|
);
|
||||||
|
return $row ? $row : null;
|
||||||
|
}
|
||||||
|
|
||||||
public static function findUserAddress($accountId)
|
public static function findUserAddress($accountId)
|
||||||
{
|
{
|
||||||
$row = SqlHelper::ormSelectOne
|
$row = SqlHelper::ormSelectOne
|
||||||
|
Loading…
x
Reference in New Issue
Block a user