From 60b98ba9c4e06883eda16c023f8280610b394f52 Mon Sep 17 00:00:00 2001 From: gongfuxiang <2499232802@qq.com> Date: Sun, 3 Mar 2019 09:10:04 +0800 Subject: [PATCH] =?UTF-8?q?api=E5=B0=8F=E7=A8=8B=E5=BA=8F=E6=8E=88?= =?UTF-8?q?=E6=9D=83=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/service/UserService.php | 5 +++++ 1 file changed, 5 insertions(+) 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(); }