This commit is contained in:
aozhiwei 2023-08-10 14:46:02 +08:00
parent 911e224782
commit ca5dfa1349

View File

@ -33,6 +33,18 @@ class User extends BaseModel {
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)
{
$row = SqlHelper::ormSelectOne