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"} + + + + -