globals.IsStoreSkuAct控制是否添加门店商品的平台活动信息
This commit is contained in:
@@ -56,7 +56,9 @@ func Init() {
|
||||
orm.RegisterModel(&model.OrderFinancial{}, &model.AfsOrder{}, &model.OrderDiscountFinancial{}, &model.OrderSkuFinancial{})
|
||||
orm.RegisterModel(&model.Act{}, &model.ActOrderRule{}, &model.ActStoreSku{})
|
||||
orm.RegisterModel(&model.ActMap{}, &model.ActStoreSkuMap{})
|
||||
// orm.RegisterModel(&model.StoreSkuAct{})
|
||||
if globals.IsStoreSkuAct {
|
||||
orm.RegisterModel(&model.StoreSkuAct{})
|
||||
}
|
||||
|
||||
orm.RegisterModel(&model.NewConfig{})
|
||||
|
||||
|
||||
@@ -8,12 +8,6 @@ import (
|
||||
"go.uber.org/zap"
|
||||
)
|
||||
|
||||
const (
|
||||
ErrStrAccessDB = "Error when access DB"
|
||||
DebugStoreID = 100119
|
||||
DebugJdStoreID = "11738122"
|
||||
)
|
||||
|
||||
var (
|
||||
ReallyCallPlatformAPI bool
|
||||
ReallySendWeixinMsg bool
|
||||
@@ -54,6 +48,7 @@ var (
|
||||
Jd2OrgCode string
|
||||
|
||||
IsUseThingMap bool
|
||||
IsStoreSkuAct bool
|
||||
|
||||
OutputDebugMsgLevel int
|
||||
)
|
||||
@@ -111,6 +106,7 @@ func Init() {
|
||||
Jd2OrgCode = beego.AppConfig.DefaultString("jd2OrgCode", "")
|
||||
|
||||
IsUseThingMap = beego.AppConfig.DefaultBool("useThingMap", false)
|
||||
IsStoreSkuAct = false
|
||||
}
|
||||
|
||||
func IsCallbackAlwaysReturnSuccess() bool {
|
||||
|
||||
Reference in New Issue
Block a user