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