- 升级 ECharts 到 5.4.2,重构 lib/ 目录结构 - 新增 DataTables 2.x 和 FixedColumns 插件 - 新增 quant/ 宏观研究报告模块 - 重构图表页面:stock_trend、hkholdbycode 等采用 JS fetch API.doorcome.cn 模式 - 新增 CLAUDE.md 补充页面文档和新数据流说明 - 更新 inc/config.php TuShare API 配置 - 更新新闻联播分析模块 news/ 和相关研究报告 research/ - 新增 api_document/ 参考文档 - 清理 .gitignore,排除 uploads/xls/.mcp.json/ source maps 等非代码文件 - 所有 PHP 文件通过 php -l 语法检查 Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
32 lines
992 B
PHP
32 lines
992 B
PHP
<?php
|
|
ini_set("display_errors","1");
|
|
include_once "../inc/config.php";
|
|
//ini_set('error_reporting', 'E_ALL'); //wrong way to open error_reporting
|
|
//ini_set("error_reporting","32759"); //Right way to set error_reporting
|
|
$mysqli = get_mysqli_connection();
|
|
include_once __DIR__ . "/../inc/excelOperate.inc.php";
|
|
include_once __DIR__ . "/../inc/tradeRec.inc.php";
|
|
|
|
$file = $_REQUEST['fpath'];
|
|
$company = $_REQUEST['up_vendor'];
|
|
$msg = array();
|
|
/*
|
|
echo json_encode(array(
|
|
"status" => "2",
|
|
"fpath"=> $file,
|
|
'company'=> $_REQUEST['up_vendor'],
|
|
"msg" => "upload sucessful!",
|
|
));
|
|
*/
|
|
$data = readMyExcel($file);
|
|
$msg[] = addslashes("Finished excel read! <br />");
|
|
$msg_op = dbOp($data, $company);
|
|
if($msg_op == false) exit(); //if return false, function dbOp() will echo massage to ajax
|
|
$msg = array_merge($msg,$msg_op);
|
|
echo json_encode(array(
|
|
"status" => "1",
|
|
"fpath"=> $file,
|
|
'company'=> $_REQUEST['up_vendor'],
|
|
"msg" => $msg,
|
|
));
|
|
?>
|