数据缓存处理

This commit is contained in:
2025-12-24 17:11:48 +08:00
parent 20a8ff5e98
commit 3831baa37a

View File

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