- 饿百门店号可能是10位或11位

- 重新命名售后单状态
This commit is contained in:
gazebo
2019-05-28 11:15:45 +08:00
parent 0859ca5d9c
commit 4ad695743d
2 changed files with 6 additions and 10 deletions

View File

@@ -293,11 +293,7 @@ func IsLegalStoreID(id int) bool {
// 将规格转为重量
func FormatSkuWeight(specQuality float32, specUnit string) int {
lowerSpecUnit := strings.ToLower(specUnit)
if lowerSpecUnit == "kg" || lowerSpecUnit == "l" {
specQuality *= 1000
}
return int(specQuality)
return RegularizeSkuQuality(specQuality, specUnit)
}
type SkuList []*model.Sku
@@ -348,7 +344,7 @@ func GuessVendorIDFromVendorStoreID(vendorStoreID int64) (vendorID int) {
vendorID = model.VendorIDJD
} else if vendorStoreID > 1234567 && vendorStoreID < 9876543 { // 美团外卖 24617137位
vendorID = model.VendorIDMTWM
} else if vendorStoreID > 1234567890 && vendorStoreID < 9987654321 { // 饿百 216700260710位
} else if vendorStoreID > 1234567890 && vendorStoreID < 99876543210 { // 饿百 216700260710位11位
vendorID = model.VendorIDEBAI
} else if vendorStoreID > 123456789 && vendorStoreID < 987654321 { // 微盟微商城 1320910489位
vendorID = model.VendorIDWSC

View File

@@ -113,10 +113,10 @@ var (
OrderStatusFinished: "完成",
OrderStatusCanceled: "取消",
AfsOrderStatusWait4Approve: "售后待审",
AfsOrderStatusNew: "新售后单",
AfsOrderStatusWait4ReceiveGoods: "售后待确认收货",
AfsOrderStatusReceivedGoods: "售后已收",
AfsOrderStatusWait4Approve: "待审",
AfsOrderStatusNew: "已审核",
AfsOrderStatusWait4ReceiveGoods: "退货待确认",
AfsOrderStatusReceivedGoods: "退货已收",
AfsOrderStatusFinished: "售后成功",
AfsOrderStatusFailed: "售后失败",
}