fix: 新增发送文件到网元服务器

This commit is contained in:
TsMask
2023-11-28 09:47:21 +08:00
parent 05d94572f4
commit 1380bf8698
6 changed files with 88 additions and 11 deletions

View File

@@ -79,7 +79,7 @@ func (s *CommontController) SysConfig(c *gin.Context) {
// 转存帮助文档
//
// POST /help-doc
// POST /helpDoc
func (s *CommontController) HelpDoc(c *gin.Context) {
language := ctx.AcceptLanguage(c)
var body struct {
@@ -105,8 +105,6 @@ func (s *CommontController) HelpDoc(c *gin.Context) {
newFile := fmt.Sprintf("%s/helpDoc/%s_doc.pdf", dir, lang)
fmt.Println(newFile)
// dst := ""
err = file.CopyUploadFile(body.UploadPath, newFile)
if err != nil {
c.JSON(400, result.CodeMsg(400, err.Error()))