From aed08bc7a1db206fb50963a83c6ad58783d8127c Mon Sep 17 00:00:00 2001 From: augushong Date: Thu, 19 Oct 2023 00:21:39 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=AF=BC=E5=87=BA=E9=9D=A2?= =?UTF-8?q?=E6=9D=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/index/controller/Common.php | 2 +- view/admin/post/output.html | 122 ++++++++++++++++++++++---------- 2 files changed, 86 insertions(+), 38 deletions(-) diff --git a/app/index/controller/Common.php b/app/index/controller/Common.php index 13f6b45..583b9bd 100644 --- a/app/index/controller/Common.php +++ b/app/index/controller/Common.php @@ -102,7 +102,7 @@ class Common extends BaseController $cache_key = 'user_uid_' . $uid; $user_info = Cache::get($cache_key); - if (is_null($user_info)) { + if (empty($user_info)) { // 实例化客户端,传入相关参数 $user_hub_client = new Client([ 'key' => get_system_config('user_hub_key'), diff --git a/view/admin/post/output.html b/view/admin/post/output.html index a871a7a..31f21f3 100644 --- a/view/admin/post/output.html +++ b/view/admin/post/output.html @@ -6,10 +6,12 @@ {$post.title} - {include file="common/_require"} + + + + -