diff --git a/application/service/UserService.php b/application/service/UserService.php index 7a19d0bfd..3a601a61c 100755 --- a/application/service/UserService.php +++ b/application/service/UserService.php @@ -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(); }