Browse Source

更新

master
huangjiajun 10 months ago
parent
commit
a21df89743
1 changed files with 6 additions and 1 deletions
  1. +6
    -1
      rule/public_platoon_double_network_relate_commission.go

+ 6
- 1
rule/public_platoon_double_network_relate_commission.go View File

@@ -27,6 +27,9 @@ func AddPublicPlatoonDoubleNetworkRelateCommission(engine *xorm.Engine, AddPubli
if err != nil {
return nil, err
}
if userPublicPlatoonDoubleNetworkSetting == nil {
return nil, nil
}
for _, param := range AddPublicPlatoonDoubleNetworkRelateCommissionReqList {
//TODO::判断是否有uid为-1 (代表等待新用户填充) 的记录
userPublicPlatoonDoubleNetworkRelation, err2 := db.UserPublicPlatoonDoubleNetworkRelationGetOneByParams(engine, map[string]interface{}{
@@ -360,7 +363,9 @@ func EstimateUserPosition(engine *xorm.Engine, uid int) (total, level, levelRank
if err != nil {
return
}

if userPublicPlatoonDoubleNetworkSetting == nil {
return
}
//2、查询排名
rank, total, userAmount, err := CalcUserRank(engine, zhios_order_relate_utils.IntToStr(uid))
if err != nil {


Loading…
Cancel
Save