pr修改
This commit is contained in:
@@ -328,7 +328,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 != "" && exPrefixBegin != utils.ZeroTimeValue && exPrefixEnd != utils.ZeroTimeValue {
|
||||
if exPrefix != "" && !utils.IsTimeZero(exPrefixBegin) && !utils.IsTimeZero(exPrefixEnd) {
|
||||
if time.Now().Before(exPrefixEnd) && time.Now().After(exPrefixBegin) {
|
||||
skuName = exPrefix
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user