From 742bed2644e21999901abdcab78bce737901aae7 Mon Sep 17 00:00:00 2001 From: Simon Date: Mon, 15 Jun 2026 09:54:48 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=20getBasic.inc.php=20?= =?UTF-8?q?=E5=A4=9A=E4=BD=99=E6=8B=AC=E5=8F=B7=20&=20=E9=87=8D=E6=9E=84?= =?UTF-8?q?=E7=A0=94=E7=A9=B6=E6=8A=A5=E5=91=8A=E5=8D=A1=E7=89=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 删除 getBasic.inc.php 中残留的多余 `}` 导致部署后解析错误 - index-2.php: 删除 PDF报告卡片;研究报告卡片改为按日期子目录动态加载 Co-Authored-By: Claude Opus 4.7 --- inc/getBasic.inc.php | 2 - index-2.php | 161 +++++++++++++++++-------------------------- 2 files changed, 62 insertions(+), 101 deletions(-) diff --git a/inc/getBasic.inc.php b/inc/getBasic.inc.php index 6c8d9c3..cb0a4b6 100644 --- a/inc/getBasic.inc.php +++ b/inc/getBasic.inc.php @@ -100,8 +100,6 @@ function tscodeToName($ts_code){ return $ts_code; } -} - function getBasicExtData($ts_code,$item,$day_st,$day_end){ $mysqli = get_mysqli_connection(); $allowed_items = ['total_mv','circ_mv','total_mv_all','circ_mv_all','pe_ttm','pb','ps','total_share','float_share','free_share']; diff --git a/index-2.php b/index-2.php index b030b87..20fab5d 100644 --- a/index-2.php +++ b/index-2.php @@ -196,112 +196,67 @@
-
+

研究报告

- -
-

以下是最新的市场研究报告,点击可查看详情。

-
- -
- (.*?)<\/title>/i', $content, $matches); - $title = !empty($matches[1]) ? $matches[1] : $fileName; - - // 输出链接 - echo ' - - ' . htmlspecialchars($title) . ' - '; - } - - } else { - echo '
- 暂无研究报告 -
'; +

按日期查看研究报告。

+ -
- -
- -
- - - + +
+ +
+ + + +
+ + +
+ + @@ -329,7 +284,15 @@ console.log(url); window.open(url); } - + + function showReportGroup(date) { + document.querySelectorAll('.report-group').forEach(el => el.style.display = 'none'); + if (date) { + const target = document.getElementById('report-' + date); + if (target) target.style.display = 'block'; + } + } + // 股票搜索功能 document.getElementById('search-stock').addEventListener('click', function() { const stockCode = document.getElementById('ts_code').value.trim();