api小程序授权优化

feat/task1-c-wallet
gongfuxiang 2019-03-03 09:10:04 +08:00
parent f0c4afc230
commit 60b98ba9c4
1 changed files with 5 additions and 0 deletions

View File

@ -1515,6 +1515,11 @@ class UserService
*/
public static function UserInfo($field, $value)
{
if(empty($field) || empty($value))
{
return '';
}
return Db::name('User')->where([$field=>$value, 'is_delete_time'=>0])->find();
}