From 049a5ffc9f284a3d75959a4487cb876b3708dc5e 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 15:15:05 +0800 Subject: [PATCH] 1 --- business/dao/print_temp_utils.go | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/business/dao/print_temp_utils.go b/business/dao/print_temp_utils.go index 4930011bb..cad6f1327 100644 --- a/business/dao/print_temp_utils.go +++ b/business/dao/print_temp_utils.go @@ -147,7 +147,6 @@ func MakePrintMsgOnTemp(param map[string]string, userId string) (string, error) } for _, v := range strings.Split(userTemp.TempRank, ",") { - globals.SugarLogger.Debug("v===========", v) switch v { case "skuName", "skuNumber", "skuPrice", "skuAllPrice", "allSkuTypeCount", "allSkuCount", "upc": continue @@ -180,25 +179,16 @@ func MakePrintMsgOnTemp(param map[string]string, userId string) (string, error) } case "divider": printMsg += userTempMap["divider"] - //printValue = append(printValue, param[v]) case "title": printMsg += userTempMap["title"] - //printValue = append(printValue, param[v]) - //case "storeTel": - // printMsg += userTempMap["storeTel"] - // printValue = append(printValue, param[v]) - //case "officialName": - // printMsg += userTempMap[v] - // printValue = append(printValue, param[v]) + case "qrcOrder": + default: printMsg += userTempMap[v] printValue = append(printValue, param[v]) } } - 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 //} }