From 170c4cad9adcb14c2cf2d16c7193c7fe779fc79f Mon Sep 17 00:00:00 2001 From: huangjiajun <582604932@qq.com> Date: Sat, 2 Jul 2022 21:03:07 +0800 Subject: [PATCH] =?UTF-8?q?add=20reverse:for=20v1.1.2=20=E5=88=86=E4=BD=A3?= =?UTF-8?q?=E6=96=B9=E6=A1=88=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/comm_plan/all.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/comm_plan/all.go b/lib/comm_plan/all.go index bcc9ed1..c926e8b 100644 --- a/lib/comm_plan/all.go +++ b/lib/comm_plan/all.go @@ -205,6 +205,9 @@ func sameMoney(lv, isOnlySubsidy int, restAmt, profit, peerRate, totalRatio, res if opt.UserRate == nil { return 0, restAmt, totalRatio, peerRate, subsidyFee, true } + if opt.UserRate[lv] == nil { + return 0, restAmt, totalRatio, peerRate, subsidyFee, true + } //极差返利 if opt.UserRate[lv].PayMode == 0 && isOnlySubsidy == 0 { restAmt -= profit // 剩余可分