From 7bda29ff78a7b404673070ee28bcbca27ab1accb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E6=99=AF=E7=AB=8B?= Date: Fri, 29 Oct 2021 10:53:05 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=B7=AE=E9=A2=9D=E5=A5=96?= =?UTF-8?q?=E8=AE=A1=E7=AE=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/data/service/RebateService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/data/service/RebateService.php b/app/data/service/RebateService.php index 15a84ad68..1b31ae4d6 100644 --- a/app/data/service/RebateService.php +++ b/app/data/service/RebateService.php @@ -277,7 +277,7 @@ class RebateService extends Service [$tVip, $tRate] = [$item['vip_code'], $item['discount_rate']]; foreach ($users as $user) if (isset($rules[$user['vip_code']]) && $user['vip_code'] > $tVip) { $rule = $rules[$user['vip_code']]; - if ($tRate > $rule['discount'] && $tRate < 100) { + if ($tRate > $rule['discount']) { $map = ['uuid' => $user['id'], 'type' => self::PRIZE_05, 'order_no' => $this->order['order_no']]; if (DataUserRebate::mk()->where($map)->count() < 1) { $dRate = ($rate = $tRate - $rule['discount']) / 100;