api小程序授权优化
parent
f0c4afc230
commit
60b98ba9c4
|
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue