|
|
@@ -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 { |
|
|
|