From 66516f7a4795e6720f43b9615e01d05c89962e8d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E5=AE=97=E6=A5=A0?= Date: Thu, 25 Aug 2022 13:47:14 +0800 Subject: [PATCH] 1 --- business/dao/print_temp_utils.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/business/dao/print_temp_utils.go b/business/dao/print_temp_utils.go index 9f1ccc1aa..8bc1c9dc6 100644 --- a/business/dao/print_temp_utils.go +++ b/business/dao/print_temp_utils.go @@ -144,7 +144,6 @@ func MakePrintMsgOnTemp(param map[string]string, userId string) (string, error) userTempMap := make(map[string]string, 0) globals.SugarLogger.Debug(userTemp.Temp) if err := json.Unmarshal([]byte(userTemp.Temp), &userTempMap); err != nil { - globals.SugarLogger.Debug("err Unmarshal userTemp.Temp", err) return "", err } @@ -156,9 +155,7 @@ func MakePrintMsgOnTemp(param map[string]string, userId string) (string, error) case "goodsListDetail": printMsg += model.TempTag[v] skuList := make([]*model.SkuListPrintOrder, 0, 0) - globals.SugarLogger.Debug("SkuListPrintOrder Unmarshal userTemp. PrintOrder", param["skuList"]) if err := json.Unmarshal([]byte(param["skuList"]), &skuList); err != nil { - globals.SugarLogger.Debug("err Unmarshal userTemp.skuList", err) return "", err } for i := 0; i < len(skuList); i++ { @@ -196,6 +193,9 @@ func MakePrintMsgOnTemp(param map[string]string, userId string) (string, error) } } + globals.SugarLogger.Debug("msg=============", printMsg) + globals.SugarLogger.Debug("val=============", printValue) + globals.SugarLogger.Debug("string ================", strings.Replace(fmt.Sprintf(strings.Replace(printMsg, "\n", "", -1), printValue...), "\\n", "\r\n", -1)) return strings.Replace(fmt.Sprintf(strings.Replace(printMsg, "\n", "", -1), printValue...), "\\n", "\r\n", -1), nil //} }