- model.WaybillStatusNeverSend
- try to set ebai sku weight
This commit is contained in:
@@ -196,3 +196,12 @@ func IsMobileFake(mobile string) bool {
|
||||
func IsLegalStoreID(id int) bool {
|
||||
return id >= 100000 && id < 200000
|
||||
}
|
||||
|
||||
// 将规格转为重量
|
||||
func FormatSkuWeight(specQuality float32, specUnit string) int {
|
||||
lowerSpecUnit := strings.ToLower(specUnit)
|
||||
if lowerSpecUnit == "kg" || lowerSpecUnit == "l" {
|
||||
specQuality *= 1000
|
||||
}
|
||||
return int(specQuality)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user