This commit is contained in:
suyl
2021-09-10 09:11:23 +08:00
parent 4ae75be0d6
commit 92fd4c8107
5 changed files with 24 additions and 18 deletions

View File

@@ -263,7 +263,7 @@ func CallbackBrandBill(res *SecretNumberMsgRes) (err error) {
db = dao.GetDB()
errLists = errlist.New()
)
if brands, _ := dao.GetBrands(db, "", 0, res.PoolKey); len(brands) > 0 {
if brands, _ := dao.GetBrands(db, "", 0, res.PoolKey, false, ""); len(brands) > 0 {
if brandID := brands[0].ID; brandID != 0 {
price := utils.Float64TwoInt(utils.Str2Time(res.ReleaseTime).Sub(utils.Str2Time(res.StartTime)).Minutes()+1) * 6
if err = partner.CurStoreAcctManager.InsertBrandBill(jxcontext.AdminCtx, brandID, price, model.BrandBillTypeExpend, model.BrandBillFeeTypeSecretNumber, ""); err == nil {