Commit Graph
10 Commits
Author SHA1 Message Date
simonandClaude Code 7e57cae242 refactor: 全面代码重构与项目结构整理
安全性:
- 所有SQL查询改用参数化查询(db_query),防止SQL注入
- TUSHARE_API_TOKEN集中到config.php常量,移除硬编码和多份拷贝
- getBasic.inc.php中$_REQUEST输出到JS时添加htmlspecialchars转义

代码组织:
- 21个页面文件移至charts/子目录,根目录仅保留入口文件
- ajax.inc.php拆分:esfTradeDaily/esfListDaily迁至getEstate.inc.php
- getBasic.inc.php拆分:HTML组件函数迁至新建的widgets.inc.php
- 前端依赖去重:移除lib/echarts.min.js、libai/3.4.16.js、research/js/3.4.16.js

规范化:
- AJAX响应格式统一为jsonResponse()标准封装
- 前端全局变量统一为window.chartConfig对象模式
- 修复PHP 8.4 Deprecated警告(getEstateData、getStockHistoryDataByTS参数顺序)
- html/head.php中jQuery/CSS路径改为绝对路径,修复charts/子目录加载问题

Co-Authored-By: Claude Code <noreply@anthropic.com>
2026-05-26 08:20:33 +08:00
杨水淼 cb98c1649c Add summary statistics and macroeconomic data files for 2025
- Created summary_statistics.csv with total news articles and key metrics from January 1 to October 13, 2025.
- Added 一号文件十四五十五五规划情况.csv detailing keyword occurrences related to planning documents.
- Introduced 主要宏观经济数据.csv capturing mentions of key economic indicators.
- Included 国外交流随行企业与企业家名单.csv listing leaders and their engagements with foreign enterprises.
- Added 国家领导人考察行程清单.csv documenting leaders' inspection itineraries.
- Created 国际合作与外交动态.csv summarizing international cooperation and diplomatic activities.
- Added 高频行业关键词统计.csv with statistics on frequently mentioned industry keywords.
2025-10-23 14:58:21 +08:00
杨水淼 521e0687a4 Add stock dividend trend analysis page with chart rendering and data fetching 2025-09-02 12:41:09 +08:00
杨水淼 bd82783ddb 更新:js容错算法改善,增加2份Ai报表 2025-07-22 16:16:59 +08:00
杨水淼 bd4f92d465 更新:ajax 载入动图更新 2025-07-19 10:01:53 +08:00
杨水淼 5152b3ee2f 更新:重构和迁移多个PHP文件到deprecated目录,删除不再使用的文件,更新pubfunc.js版本;index_trend,stock_trend 数据源以及代码重构简化 2025-07-09 15:21:52 +08:00
杨水淼 43a202c789 更新:添加每日和每月数据选项,修改相关URL参数,更新JavaScript文件,增加股票指数历史数据获取功能 2025-07-09 07:36:50 +08:00
yangshuimiao 5d135b24f1 update: minor update 2025-01-10 07:48:24 +08:00
yangshuimiao d367cfc2e9 融资余额Y坐标auto scale 2023-10-26 10:24:47 +08:00
yangshuimiao 3a09f3ca67 first commit 2023-10-16 12:58:41 +08:00