- 禁止在老版活动上创建补贴表,迁移至新版,暂时保持活动表的兼容

This commit is contained in:
gazebo
2019-07-25 08:35:30 +08:00
parent 3eb2b1395a
commit db45cf2051
3 changed files with 19 additions and 3 deletions

View File

@@ -512,6 +512,8 @@ func updateActPrice4StoreSkuNameNew(db *dao.DaoDB, storeIDs, skuIDs []int, skuNa
index := dao.GenSkuPriceMapKey(skuName.StoreID, v.SkuID)
if jxSkuPriceMap[index] != nil {
v.EarningPrice = jxSkuPriceMap[index].EarningPrice
} else if actStoreSku != nil {
v.EarningPrice = int(actStoreSku.EarningPrice)
}
v.RealEarningPrice = v.EarningPrice