fix: 新增发送文件到网元服务器
This commit is contained in:
@@ -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()))
|
||||
|
||||
Reference in New Issue
Block a user