@@ -202,9 +202,9 @@ func BatchGetPublicPlatoonRelateCommissionByOrderLevel(engine *xorm.Engine, mast | |||||
//直推獎勵 | //直推獎勵 | ||||
if zhios_order_relate_utils.StrToInt(recommendUid) > 0 { | if zhios_order_relate_utils.StrToInt(recommendUid) > 0 { | ||||
parentUid, _ := db.UserFindByID(engine, recommendUid) | parentUid, _ := db.UserFindByID(engine, recommendUid) | ||||
lvGrade1 := subsidyTmp[zhios_order_relate_utils.IntToStr(parentUid.Level)] | |||||
if lvGrade1 != nil { | |||||
for _, coinId := range lvGrade1.ReturnType { | |||||
lvGrade := subsidyTmp[zhios_order_relate_utils.IntToStr(parentUid.Level)] | |||||
if lvGrade != nil { | |||||
for _, coinId := range lvGrade.ReturnType { | |||||
var pendingAmount = param.PendingAmount | var pendingAmount = param.PendingAmount | ||||
if zhios_order_relate_utils.StrToInt(coinId) > 0 { //积分更换基数 | if zhios_order_relate_utils.StrToInt(coinId) > 0 { //积分更换基数 | ||||
pendingAmount = param.PendingIntegral | pendingAmount = param.PendingIntegral | ||||
@@ -216,9 +216,9 @@ func BatchGetPublicPlatoonRelateCommissionByOrderLevel(engine *xorm.Engine, mast | |||||
//共富简历 | //共富简历 | ||||
if zhios_order_relate_utils.StrToInt(nowBenefitUid) > 0 { | if zhios_order_relate_utils.StrToInt(nowBenefitUid) > 0 { | ||||
parentUid, _ := db.UserFindByID(engine, nowBenefitUid) | parentUid, _ := db.UserFindByID(engine, nowBenefitUid) | ||||
lvGrade1 := subsidyTmp[zhios_order_relate_utils.IntToStr(parentUid.Level)] | |||||
if lvGrade1 != nil { | |||||
for _, coinId := range lvGrade1.ReturnType { | |||||
lvGrade := subsidyTmp[zhios_order_relate_utils.IntToStr(parentUid.Level)] | |||||
if lvGrade != nil { | |||||
for _, coinId := range lvGrade.ReturnType { | |||||
var pendingAmount = param.PendingAmount | var pendingAmount = param.PendingAmount | ||||
if zhios_order_relate_utils.StrToInt(coinId) > 0 { //积分更换基数 | if zhios_order_relate_utils.StrToInt(coinId) > 0 { //积分更换基数 | ||||
pendingAmount = param.PendingIntegral | pendingAmount = param.PendingIntegral | ||||
@@ -415,9 +415,9 @@ func BatchSmallGetPublicPlatoonRelateCommissionLevel(engine *xorm.Engine, master | |||||
//直推獎勵 | //直推獎勵 | ||||
if zhios_order_relate_utils.StrToInt(recommendUid) > 0 { | if zhios_order_relate_utils.StrToInt(recommendUid) > 0 { | ||||
parentUid, _ := db.UserFindByID(engine, recommendUid) | parentUid, _ := db.UserFindByID(engine, recommendUid) | ||||
lvGrade1 := subsidyTmp[zhios_order_relate_utils.IntToStr(parentUid.Level)] | |||||
if lvGrade1 != nil { | |||||
for _, coinId := range lvGrade1.ReturnType { | |||||
lvGrade := subsidyTmp[zhios_order_relate_utils.IntToStr(parentUid.Level)] | |||||
if lvGrade != nil { | |||||
for _, coinId := range lvGrade.ReturnType { | |||||
var pendingAmount = param.PendingAmount | var pendingAmount = param.PendingAmount | ||||
if zhios_order_relate_utils.StrToInt(coinId) > 0 { //积分更换基数 | if zhios_order_relate_utils.StrToInt(coinId) > 0 { //积分更换基数 | ||||
pendingAmount = param.PendingIntegral | pendingAmount = param.PendingIntegral | ||||
@@ -429,9 +429,9 @@ func BatchSmallGetPublicPlatoonRelateCommissionLevel(engine *xorm.Engine, master | |||||
//共富简历 | //共富简历 | ||||
if zhios_order_relate_utils.StrToInt(nowBenefitUid) > 0 { | if zhios_order_relate_utils.StrToInt(nowBenefitUid) > 0 { | ||||
parentUid, _ := db.UserFindByID(engine, nowBenefitUid) | parentUid, _ := db.UserFindByID(engine, nowBenefitUid) | ||||
lvGrade1 := subsidyTmp[zhios_order_relate_utils.IntToStr(parentUid.Level)] | |||||
if lvGrade1 != nil { | |||||
for _, coinId := range lvGrade1.ReturnType { | |||||
lvGrade := subsidyTmp[zhios_order_relate_utils.IntToStr(parentUid.Level)] | |||||
if lvGrade != nil { | |||||
for _, coinId := range lvGrade.ReturnType { | |||||
var pendingAmount = param.PendingAmount | var pendingAmount = param.PendingAmount | ||||
if zhios_order_relate_utils.StrToInt(coinId) > 0 { //积分更换基数 | if zhios_order_relate_utils.StrToInt(coinId) > 0 { //积分更换基数 | ||||
pendingAmount = param.PendingIntegral | pendingAmount = param.PendingIntegral | ||||