mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-06 03:58:04 +08:00
修改差额奖计算
This commit is contained in:
parent
16c0af26f3
commit
7bda29ff78
@ -277,7 +277,7 @@ class RebateService extends Service
|
|||||||
[$tVip, $tRate] = [$item['vip_code'], $item['discount_rate']];
|
[$tVip, $tRate] = [$item['vip_code'], $item['discount_rate']];
|
||||||
foreach ($users as $user) if (isset($rules[$user['vip_code']]) && $user['vip_code'] > $tVip) {
|
foreach ($users as $user) if (isset($rules[$user['vip_code']]) && $user['vip_code'] > $tVip) {
|
||||||
$rule = $rules[$user['vip_code']];
|
$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']];
|
$map = ['uuid' => $user['id'], 'type' => self::PRIZE_05, 'order_no' => $this->order['order_no']];
|
||||||
if (DataUserRebate::mk()->where($map)->count() < 1) {
|
if (DataUserRebate::mk()->where($map)->count() < 1) {
|
||||||
$dRate = ($rate = $tRate - $rule['discount']) / 100;
|
$dRate = ($rate = $tRate - $rule['discount']) / 100;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user