This commit is contained in:
邹宗楠
2022-08-25 09:50:52 +08:00
parent a3ea6de99d
commit a84ad79665
2 changed files with 10 additions and 6 deletions

View File

@@ -345,7 +345,7 @@ func (c *ApiController) DoPrint(dataMap map[string]interface{}) (data, errCode s
content = dataMap[keyContent].(string)
// 打印文件转结构体
contentMap := make(map[string]string)
if err := json.Unmarshal([]byte(content), contentMap); err != nil {
if err := json.Unmarshal([]byte(content), &contentMap); err != nil {
globals.SugarLogger.Debugf("json.Unmarshal 1 err := %v", err)
return "", model.ErrCodeGeneralFailed, err
}