- fk
This commit is contained in:
@@ -31,6 +31,7 @@ type ActOrderRuleParam struct {
|
||||
|
||||
type ActStoreSkuParam struct {
|
||||
model.ActStoreSku
|
||||
ErrMsg string `json:"errMsg"`
|
||||
}
|
||||
|
||||
type ActDetail struct {
|
||||
@@ -147,6 +148,7 @@ func ActStoreSkuParam2Model(ctx *jxcontext.Context, db *dao.DaoDB, act *model.Ac
|
||||
}
|
||||
}
|
||||
if err2 := checkDiscountValidation(act.Type, int(actSkuMap.ActualActPrice*100/actSkuMap.VendorPrice)); err2 != nil {
|
||||
v.ErrMsg = fmt.Sprintf("err:%s, actPrice:%d, vendorPrice:%d, discount:%d", err2.Error(), actSkuMap.ActualActPrice, actSkuMap.VendorPrice, int(actSkuMap.ActualActPrice*100/actSkuMap.VendorPrice))
|
||||
wrongSkuList = append(wrongSkuList, v)
|
||||
} else {
|
||||
dao.WrapAddIDCULDEntity(actSkuMap, ctx.GetUserName())
|
||||
|
||||
Reference in New Issue
Block a user