diff --git a/business/jxstore/act/act.go b/business/jxstore/act/act.go index ce4d17cd6..2e20c8c4a 100644 --- a/business/jxstore/act/act.go +++ b/business/jxstore/act/act.go @@ -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())