|
|
@@ -725,7 +725,7 @@ func getCommissionRatio(typ string, level, peerNum int, grade map[int]*LvGrade) |
|
|
|
case "team": |
|
|
|
ratio = grade[level].TeamRate |
|
|
|
case "same_lv": |
|
|
|
if len(grade[level].PeerRate) == 0 || len(grade[level].PeerRate) >= peerNum+1 { |
|
|
|
if len(grade[level].PeerRate) == 0 || len(grade[level].PeerRate) < peerNum+1 { |
|
|
|
ratio = 0 |
|
|
|
} else { |
|
|
|
ratio = grade[level].PeerRate[peerNum] |
|
|
|