Commit e4c9d5cd by Leo Zheng

在 README.md 里增加错误代码相关信息

parent f771f1df
...@@ -35,6 +35,15 @@ ...@@ -35,6 +35,15 @@
2. 在根目录运行:```npm install``` 2. 在根目录运行:```npm install```
3. 在VSCode编译器里按F5开始运行服务器 3. 在VSCode编译器里按F5开始运行服务器
## 错误代码:
- 501:数据Excel文件不在指定位置
- 502:数据Excel文件找不到需要的表格
- 503:请求内缺少日期参数
- 504:请求内缺少日期或者景点参数
- 505:不支持该请求
- 506:请求内缺少年份参数
- 500:未知错误
# English # English
## Endpoint: /szgc/getdata ## Endpoint: /szgc/getdata
...@@ -72,4 +81,11 @@ ...@@ -72,4 +81,11 @@
1. Clone the Repository (```git clone http://123.207.147.179:8888/chenjinjing/shouzhouServer.git```) 1. Clone the Repository (```git clone http://123.207.147.179:8888/chenjinjing/shouzhouServer.git```)
2. In the root directory, run ```npm install``` 2. In the root directory, run ```npm install```
3. Using VScode IDE, press F5 to start the server. 3. Using VScode IDE, press F5 to start the server.
## Error Code:
- 501: The Excel file storing the data is missing
- 502: The Excel sheet doesn't exist in the Excel file (Excel file is corrupted)
- 503: The request is missing parameter date
- 504: The request is missing parameter date and sight
- 505: Unsupported request
- 506: The request is missing parameter year
- 500: Unknown error
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment