From fbfadd2797de60e489bfbade5c4b02b532357234 Mon Sep 17 00:00:00 2001 From: knowpia <9812993@qq.com> Date: Wed, 2 Nov 2022 14:30:29 +0800 Subject: [PATCH] fix bug --- app/controller/User.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controller/User.php b/app/controller/User.php index 5097eca..b59fd7e 100644 --- a/app/controller/User.php +++ b/app/controller/User.php @@ -16,7 +16,7 @@ class User if(empty($info)) return show("无此用户信息"); unset($info['openid']); - $info['identity'] = empty($info['shiyou_id']) ? 1 : 0; + $info['identity'] = !empty($info['shiyou_id']) ? 1 : 0; return show(SUCCESS_MESSAGE,SUCCESS_CODE,$info); }