数据缓存处理

This commit is contained in:
2025-12-24 17:17:06 +08:00
parent 2fb87137dd
commit 25635b0e46
2 changed files with 3 additions and 3 deletions

View File

@@ -192,7 +192,7 @@ class User extends Model
{
//先从缓存中获取
$cache_key = 'user_base_info_'.$uid;
$user_info = json_decode(Cache::get($cache_key));
$user_info = json_decode(Cache::get($cache_key), true);
if(!$user_info){
$user_info = db::name('user')