Quellcode durchsuchen

add reverse:for v3.6.2 公排推荐人读取调整

tags/v3.6.2
huangjiajun vor 2 Jahren
Ursprung
Commit
407bf9027a
2 geänderte Dateien mit 12 neuen und 5 gelöschten Zeilen
  1. +6
    -2
      svc/public_platoon_relate_commission.go
  2. +6
    -3
      svc/small_public_platoon_relate_commission.go

+ 6
- 2
svc/public_platoon_relate_commission.go Datei anzeigen

@@ -8,7 +8,6 @@ import (
"encoding/json"
"errors"
"fmt"
"strconv"
"strings"
"xorm.io/xorm"
)
@@ -120,11 +119,16 @@ func BatchGetPublicPlatoonRelateCommissionByOrder(engine *xorm.Engine, masterId
return nil, errors.New("更新公排关系记录失败")
}
}
recommendUid := ""
userProfile, _ := db.UserProfileFindByID(engine, param.Uid)
if userProfile != nil && userProfile.ParentUid > 0 {
recommendUid = zhios_order_relate_utils.IntToStr(userProfile.ParentUid)
}
///
resp[param.Oid] = &md.PublicPlatoonRelateCommissionResp{
Uid: param.Uid,
CommonWealthBenefitUid: nowBenefitUid,
DirectPushBenefitUid: strconv.Itoa(userPublicPlatoonRelation.RecommendUid),
DirectPushBenefitUid: recommendUid,
PendingAmount: param.PendingAmount,
PendingIntegral: param.PendingIntegral,
Oid: param.Oid,


+ 6
- 3
svc/small_public_platoon_relate_commission.go Datei anzeigen

@@ -8,7 +8,6 @@ import (
"encoding/json"
"errors"
"fmt"
"strconv"
"strings"
"xorm.io/xorm"
)
@@ -122,11 +121,15 @@ func BatchSmallGetPublicPlatoonRelateCommission(engine *xorm.Engine, masterId st
return nil, errors.New("更新公排关系记录失败")
}
}

recommendUid := ""
userProfile, _ := db.UserProfileFindByID(engine, param.Uid)
if userProfile != nil && userProfile.ParentUid > 0 {
recommendUid = zhios_order_relate_utils.IntToStr(userProfile.ParentUid)
}
resp[param.Oid] = &md.SmallPublicPlatoonRelateCommissionResp{
Uid: param.Uid,
CommonWealthBenefitUid: nowBenefitUid,
DirectPushBenefitUid: strconv.Itoa(userPublicPlatoonRelation.RecommendUid),
DirectPushBenefitUid: recommendUid,
PendingAmount: param.PendingAmount,
Oid: param.Oid,
SelfRateList: selfRateList,


Laden…
Abbrechen
Speichern