From fa35040a8868f931294633e159697ac6e1148a6c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E5=8D=8E=E6=B8=85?= <18691022700@163.com> Date: Wed, 24 Dec 2025 17:00:06 +0800 Subject: [PATCH] =?UTF-8?q?=E6=95=B0=E6=8D=AE=E7=BC=93=E5=AD=98=E5=A4=84?= =?UTF-8?q?=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/api/model/User.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/api/model/User.php b/application/api/model/User.php index 52fafe3b..9ff91014 100644 --- a/application/api/model/User.php +++ b/application/api/model/User.php @@ -194,7 +194,7 @@ class User extends Model $cache_key = 'user_base_info_'.$uid; $user_info = json_decode(Cache::get($cache_key)); - if($user_info){ + if(!$user_info){ $user_info = db::name('user') ->field('id as user_id,nickname,avatar,sex,mobile,market_value,user_code as code') ->where('id', $uid)->find();