|
|
@ -482,9 +482,6 @@ class RebateService extends Service
|
|
|
|
$records = [];
|
|
|
|
$records = [];
|
|
|
|
foreach ($items as $roleId => $amount) {
|
|
|
|
foreach ($items as $roleId => $amount) {
|
|
|
|
$groupGifts = $gifts->where('group', $roleGiftGroupMap[$roleId] ?? 0);
|
|
|
|
$groupGifts = $gifts->where('group', $roleGiftGroupMap[$roleId] ?? 0);
|
|
|
|
if ($roleId == '66036') {
|
|
|
|
|
|
|
|
var_dump($groupGifts->toArray());
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
$maxGift = null;
|
|
|
|
$maxGift = null;
|
|
|
|
foreach ($groupGifts as $gift) {
|
|
|
|
foreach ($groupGifts as $gift) {
|
|
|
|
if ($amount >= $gift->amount) {
|
|
|
|
if ($amount >= $gift->amount) {
|
|
|
|