Browse Source

更新

guide_order
huangjiajun 1 month ago
parent
commit
9ea82c0b9a
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      app/svc/svc_order_track_save.go

+ 2
- 2
app/svc/svc_order_track_save.go View File

@@ -425,7 +425,7 @@ func OrderRelateInsertCommService(eg *xorm.Engine, oid int64, pvd string, create
ownSubsidyFee = ownSubsidyFee1 ownSubsidyFee = ownSubsidyFee1
} }
profit := utils.FloatFormat(lvUser.Profit+lvUser.SubsidyFee+ownSubsidyFee, 9) profit := utils.FloatFormat(lvUser.Profit+lvUser.SubsidyFee+ownSubsidyFee, 9)
data := []*model.OrdListRelate{{Oid: oid, Uid: lvUser.Uid, Amount: profit, AdditionalSubsidy: utils.Float64ToStrByPrec(lvUser.AdditionalSubsidy, 9), Pvd: pvd, CreateAt: createTime, Level: level, Mode: mode, ExtendType: lvUser.ExtendType}}
data := []*model.OrdListRelate{{Oid: oid, Uid: lvUser.Uid, Amount: profit, AdditionalSubsidy: utils.Float64ToStrByPrec(lvUser.AdditionalSubsidy, 9), Pvd: pvd, CreateAt: createTime, Level: level, Mode: mode, ExtendType: 8}}
for lvUser.ParentUser != nil { for lvUser.ParentUser != nil {
lvUser = lvUser.ParentUser lvUser = lvUser.ParentUser
fmt.Println(lvUser) fmt.Println(lvUser)
@@ -448,7 +448,7 @@ func OrderRelateInsertCommService(eg *xorm.Engine, oid int64, pvd string, create
Level: level, Level: level,
Mode: mode, Mode: mode,
AdditionalSubsidy: utils.Float64ToStrByPrec(additionalSubsidy, 9), AdditionalSubsidy: utils.Float64ToStrByPrec(additionalSubsidy, 9),
ExtendType: lvUser.ExtendType,
ExtendType: 8,
}) })
} }
return data return data


Loading…
Cancel
Save