同步商品名

This commit is contained in:
苏尹岚
2019-12-18 18:35:14 +08:00
parent 7fdb107e6f
commit be8a98dc90
6 changed files with 85 additions and 4 deletions

View File

@@ -329,7 +329,7 @@ func FloatWeight2Int(weight float32) int {
func ComposeSkuName(prefix, name, comment, unit string, spec_quality float32, spec_unit string, maxLen int, exPrefix string, exPrefixBegin, exPrefixEnd time.Time) (skuName string) {
if exPrefix != "" && !utils.IsTimeZero(exPrefixBegin) && !utils.IsTimeZero(exPrefixEnd) {
if time.Now().Before(exPrefixEnd) && time.Now().After(exPrefixBegin) {
if time.Now().Add(6*time.Hour).After(exPrefixBegin) && time.Now().Add(-6*time.Hour).Before(exPrefixEnd) {
skuName = exPrefix
}
}