-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdebug-files.bat
More file actions
54 lines (47 loc) · 1.15 KB
/
debug-files.bat
File metadata and controls
54 lines (47 loc) · 1.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
@echo off
chcp 65001 >nul
echo ====================================
echo Excel API - 文件上传调试工具
echo ====================================
echo.
echo 1. 检查目录结构
echo ====================================
if exist "excel-files" (
echo [√] excel-files 目录存在
dir /b "excel-files"
echo.
echo 文件详情:
dir "excel-files"
) else (
echo [×] excel-files 目录不存在
)
echo.
if exist "excel-temp" (
echo [√] excel-temp 目录存在
) else (
echo [×] excel-temp 目录不存在
)
echo.
if exist "logs" (
echo [√] logs 目录存在
) else (
echo [×] logs 目录不存在
)
echo.
echo 2. 检查日志文件
echo ====================================
if exist "logs\excel-api.log" (
echo [√] 日志文件存在
echo 最后 20 行日志:
echo --------
powershell -Command "Get-Content logs\excel-api.log -Tail 20"
) else (
echo [×] 日志文件不存在
)
echo.
echo 3. 测试上传文件
echo ====================================
echo 请打开浏览器访问: http://localhost:8080/admin/files
echo 上传一个Excel文件后,再次运行此脚本查看结果
echo.
pause