|
|
@@ -214,7 +214,7 @@ func makeSubSystemData(engine *xorm.Engine, args *md.RegionalAgentSystemArgs, re |
|
|
|
parentUser, _ := db.UserProfileFindByID(engine, args.Uid) |
|
|
|
parentUid := 0 |
|
|
|
if parentUser != nil { |
|
|
|
parentUid = parentUser.Uid |
|
|
|
parentUid = parentUser.ParentUid |
|
|
|
} |
|
|
|
parents, amount, divideAmount, err = SubCommAmount(parentUid, zhios_order_relate_utils.AnyToFloat64(commissionRate), amount, agentUser, coinSetDetail, virtualCoin, parents, false) |
|
|
|
if err != nil { |
|
|
|