瀏覽代碼

更新

master
huangjiajun 1 年之前
父節點
當前提交
cb5f61f0be
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. +1
    -1
      lib/comm_plan/all.go

+ 1
- 1
lib/comm_plan/all.go 查看文件

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


Loading…
取消
儲存