菜市默认0.2,果园默认0.5
This commit is contained in:
@@ -11,6 +11,8 @@ import (
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"github.com/astaxie/beego"
|
||||
|
||||
"git.rosy.net.cn/baseapi/platformapi/aliupcapi"
|
||||
"git.rosy.net.cn/baseapi/utils"
|
||||
|
||||
@@ -1225,7 +1227,11 @@ func AddSku(ctx *jxcontext.Context, nameID int, sku *model.Sku, userName string)
|
||||
// sku.JdSyncStatus = model.SyncFlagNewMask
|
||||
// sku.JdID = 0
|
||||
sku.NameID = nameID
|
||||
|
||||
if beego.BConfig.RunMode == "jxgy" {
|
||||
sku.LadderBoxPrice = 50
|
||||
} else if beego.BConfig.RunMode == "prod" {
|
||||
sku.LadderBoxPrice = 20
|
||||
}
|
||||
dao.Begin(db)
|
||||
defer func() {
|
||||
if r := recover(); r != nil {
|
||||
|
||||
Reference in New Issue
Block a user