提交 60b98ba9 编写于 作者: G gongfuxiang

api小程序授权优化

上级 f0c4afc2
......@@ -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();
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册