1
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user