From ecf40dae895c89bc22aee150bf8631733ad4320d Mon Sep 17 00:00:00 2001
From: pengda <10266652509@qq.com>
Date: Fri, 23 May 2025 09:27:19 +0800
Subject: [PATCH] =?UTF-8?q?=E5=BE=AE=E5=8D=9A=E8=AF=A6=E6=83=85=E9=A1=B5?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 config/define.php                     |  2 ++
 control/weibo.php                     |  4 ++++
 model/mWeiboBehavior.php              |  1 +
 view/templates/weibo/show_detail.html | 30 ++++++++++++++++++++++++++++++
 4 files changed, 37 insertions(+)
 create mode 100644 view/templates/weibo/show_detail.html

diff --git a/config/define.php b/config/define.php
index 46087ff..2a9004a 100644
--- a/config/define.php
+++ b/config/define.php
@@ -51,6 +51,8 @@
 
     define('WEIBO_LOGIN_COOKIE', '_2A25FItemDeRhGeFH41MV8ibNyjSIHXVmXlVurDV8PUNbmtAYLWP9kW9NekLV22FUUuTM0k2WTJS1xyONMvh_V90k');
 
+    define('WEIBO_DETAIL_URL', 'https://zhishiku.yizherenxin.cn/weibo/show_detail/wid/%s');
+
     define('WEIBO_USER_ZHANG',2282201403);
     define('WEIBO_USER_XU',1285478591);
     define('WEIBO_USER_CHENG',5031299688);
diff --git a/control/weibo.php b/control/weibo.php
index 376b851..99624b9 100644
--- a/control/weibo.php
+++ b/control/weibo.php
@@ -106,4 +106,8 @@ class weibo extends publicBase {
 
         $this->ajax_json(true, '获取成功', $rdata);
     }
+
+    public function show_detail() {
+        $this->view['wid'] = $this->get('wid') + 0;
+    }
 }
diff --git a/model/mWeiboBehavior.php b/model/mWeiboBehavior.php
index c47246a..c183e1c 100644
--- a/model/mWeiboBehavior.php
+++ b/model/mWeiboBehavior.php
@@ -71,6 +71,7 @@ class mWeiboBehavior extends mBase {
 
             $re['uname'] = empty($weibo)? $weibo_user[WEIBO_USER_ZHANG] : $weibo_user[$weibo['uid']];
             $re['title'] = empty($weibo)? '无文字展示' : $weibo['text'];
+            $re['url'] = sprintf(WEIBO_DETAIL_URL, $re['wid']);
         }
         return $res;
     }
diff --git a/view/templates/weibo/show_detail.html b/view/templates/weibo/show_detail.html
new file mode 100644
index 0000000..23898b3
--- /dev/null
+++ b/view/templates/weibo/show_detail.html
@@ -0,0 +1,30 @@
+<!DOCTYPE html>
+<html lang="en">
+
+<head>
+    <meta charset="UTF-8">
+    <meta name="referrer" content="no-referrer">
+    <meta name="viewport" content="width=device-width, initial-scale=1.0">
+    <title>详情</title>
+    {literal}
+    <style>
+        html, body {
+            margin: 0;
+            padding: 0;
+            height: 100%;
+            overflow: hidden;
+        }
+        iframe {
+            border: none;
+            width: 100%;
+            height: 100%;
+        }
+    </style>
+    {/literal}
+</head>
+
+<body>
+    <iframe src="https://m.weibo.cn/detail/{$wid}" frameborder="0"></iframe>
+</body>
+
+</html>
\ No newline at end of file
-- 
1.8.3.1