mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-06 03:58:04 +08:00
Update RebateCurrentService.php
This commit is contained in:
parent
d6c2710df0
commit
16b1994045
@ -381,10 +381,7 @@ class RebateCurrentService extends Service
|
|||||||
if ($this->config("manage_type_vip_{$nextLevel}") == 2) {
|
if ($this->config("manage_type_vip_{$nextLevel}") == 2) {
|
||||||
$amount = 0.00;
|
$amount = 0.00;
|
||||||
foreach (range($prevLevel, $nextLevel) as $level) {
|
foreach (range($prevLevel, $nextLevel) as $level) {
|
||||||
[$state, $value] = [
|
[$state, $value] = [$this->config("manage_state_vip_{$level}"), $this->config("manage_value_vip_{$level}")];
|
||||||
$this->config("manage_state_vip_{$level}"),
|
|
||||||
$this->config("manage_value_vip_{$level}"),
|
|
||||||
];
|
|
||||||
if ($state && $value > 0) $amount += $value;
|
if ($state && $value > 0) $amount += $value;
|
||||||
}
|
}
|
||||||
return floatval($amount);
|
return floatval($amount);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user