From 98e1a260de1e06004f752b0cfb0cbdeb8dea7a79 Mon Sep 17 00:00:00 2001
From: pengda <10266652509@qq.com>
Date: Fri, 21 Mar 2025 18:10:04 +0800
Subject: [PATCH] =?UTF-8?q?=E7=AE=A1=E7=90=86=E5=91=98=E5=88=97=E8=A1=A8?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 control/weibo.php                   | 4 +---
 view/templates/index/user_list.html | 2 +-
 view/templates/weibo/home.html      | 2 +-
 3 files changed, 3 insertions(+), 5 deletions(-)

diff --git a/control/weibo.php b/control/weibo.php
index e1a0339..8377d3e 100644
--- a/control/weibo.php
+++ b/control/weibo.php
@@ -7,9 +7,7 @@ include_once(dirname(dirname(__FILE__)) . "/library/publicBase.php");
 
 class weibo extends publicBase {
 
-    public function home() {
-        $this->view['nickname'] = $_SESSION['nickname'];
-    }
+    public function home() {}
 
     public function ajax_weibo_list() {
         $status = $this->post('status') + 0;
diff --git a/view/templates/index/user_list.html b/view/templates/index/user_list.html
index 3ccd1e3..36b656f 100644
--- a/view/templates/index/user_list.html
+++ b/view/templates/index/user_list.html
@@ -61,7 +61,7 @@
                 <img src="{$smarty.const.CSS_URL}/images/home-more.png" alt="">
                 <div class="dropdown">
                     <button class="dropdown-toggle">
-                        {$nickname}
+                        {$_user_info.nickname}
                         <img class="icon" src="{$smarty.const.CSS_URL}/images/drop-icon.svg" alt="">
                     </button>
                     <div class="dropdown-panel">
diff --git a/view/templates/weibo/home.html b/view/templates/weibo/home.html
index b6155fa..e550363 100644
--- a/view/templates/weibo/home.html
+++ b/view/templates/weibo/home.html
@@ -18,7 +18,7 @@
                 <img src="{$smarty.const.CSS_URL}/images/home-more.png" alt="">
                 <div class="dropdown">
                     <button class="dropdown-toggle">
-                        {$nickname}
+                        {$_user_info.nickname}
                         <img class="icon" src="{$smarty.const.CSS_URL}/images/drop-icon.svg" alt="">
                     </button>
                     <div class="dropdown-panel">
-- 
1.8.3.1