Browse Source

修复/ 引起的异常

master
453530270@qq.com 2 years ago
parent
commit
62a57002f6
  1. 7
      fssc/README.md
  2. BIN
      fssc/fssc
  3. 4
      fssc/internal/handler/handler.go

7
fssc/README.md

@ -1,2 +1,7 @@
## 文件升级的管理端
管理待升级的文件,可以勾选和其他的操作
管理待升级的文件,可以勾选和其他的操作
更新服务器
需要更新的文件,上传到更新服务器后,按日期生成更新包

BIN
fssc/fssc

Binary file not shown.

4
fssc/internal/handler/handler.go

@ -254,8 +254,8 @@ func SendHandler(w http.ResponseWriter, r *http.Request) {
DeviceName: config.G.DeviceName,
Rundir: config.G.FilePath,
DownloadPath: downloadPath,
//UrlPath: strings.TrimSuffix(r.URL.Path, "/"),
UrlPath: r.URL.Path,
UrlPath: strings.TrimSuffix(r.URL.Path, "/"),
//UrlPath: r.URL.Path,
}
if fileInfo.IsDir() {

Loading…
Cancel
Save