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, ",") {
|
for _, v := range strings.Split(userTemp.TempRank, ",") {
|
||||||
globals.SugarLogger.Debug("v===========", v)
|
|
||||||
switch v {
|
switch v {
|
||||||
case "skuName", "skuNumber", "skuPrice", "skuAllPrice", "allSkuTypeCount", "allSkuCount", "upc":
|
case "skuName", "skuNumber", "skuPrice", "skuAllPrice", "allSkuTypeCount", "allSkuCount", "upc":
|
||||||
continue
|
continue
|
||||||
@@ -180,25 +179,16 @@ func MakePrintMsgOnTemp(param map[string]string, userId string) (string, error)
|
|||||||
}
|
}
|
||||||
case "divider":
|
case "divider":
|
||||||
printMsg += userTempMap["divider"]
|
printMsg += userTempMap["divider"]
|
||||||
//printValue = append(printValue, param[v])
|
|
||||||
case "title":
|
case "title":
|
||||||
printMsg += userTempMap["title"]
|
printMsg += userTempMap["title"]
|
||||||
//printValue = append(printValue, param[v])
|
case "qrcOrder":
|
||||||
//case "storeTel":
|
|
||||||
// printMsg += userTempMap["storeTel"]
|
|
||||||
// printValue = append(printValue, param[v])
|
|
||||||
//case "officialName":
|
|
||||||
// printMsg += userTempMap[v]
|
|
||||||
// printValue = append(printValue, param[v])
|
|
||||||
default:
|
default:
|
||||||
printMsg += userTempMap[v]
|
printMsg += userTempMap[v]
|
||||||
printValue = append(printValue, param[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
|
return strings.Replace(fmt.Sprintf(strings.Replace(printMsg, "\n", "", -1), printValue...), "\\n", "\r\n", -1), nil
|
||||||
//}
|
//}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user