同步商品名
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user