美化全站UI: 统计卡片、表格、详情弹窗、响应式适配; Shop续费检测+QQ一致性; 支付延迟; card_id可选
This commit is contained in:
1 parent
0cd8fc9d64
commit
d6d7a1a27e
316 files changed
+3398
-305
No files matched your search
+18
-2
@@ -24,5 +24,21 @@ if ($uri !== '/' && file_exists(__DIR__ . '/public' . $uri)) {
|
||||
exit;
|
||||
}
|
||||
|
||||
// 所有请求统一交由 index.php 处理
|
||||
require_once __DIR__ . '/public/index.php';
|
||||
// API 请求走后端入口
|
||||
if (str_starts_with($uri, '/api/')) {
|
||||
require_once __DIR__ . '/public/index.php';
|
||||
exit;
|
||||
}
|
||||
|
||||
// 非 API 请求返回前端 SPA 入口(index.html),前端 Vue Router 负责渲染路由
|
||||
$indexHtml = __DIR__ . '/public/index.html';
|
||||
if (file_exists($indexHtml)) {
|
||||
header('Content-Type: text/html; charset=utf-8');
|
||||
readfile($indexHtml);
|
||||
exit;
|
||||
}
|
||||
|
||||
// 兜底:无法处理
|
||||
http_response_code(404);
|
||||
echo 'Not Found';
|
||||
exit;
|
||||
Reference in new issue
Block a user