master
ELF 5 years ago
parent 48b1cdf66f
commit ae44fc79bd

@ -8,7 +8,8 @@ class PromoteRepository {
} }
private function assembleZero($allKeys, $records, $zeroValue) { private function assembleZero($allKeys, $records, $zeroValue)
{
$noExistKeys = array_diff($allKeys, array_keys($records)); $noExistKeys = array_diff($allKeys, array_keys($records));
foreach ($noExistKeys as $key) { foreach ($noExistKeys as $key) {
$records[$key] = $zeroValue; $records[$key] = $zeroValue;

@ -588,13 +588,9 @@ class PromoteCoinController extends BaseController
if ($promoteCoin['source_type'] == 2) { if ($promoteCoin['source_type'] == 2) {
return '玩家转账'; return '玩家转账';
} else { } else {
if ($promote['parent_id'] == 1) { $promoteService = new PromoteService();
return '会长转账'; $levelName = $promoteService->getLevelName($promote['level']);
} elseif ($promote['parent_id'] > 0 && $promote['grand_id'] == 0) { return $levelName . '转账';
return '组长转账';
} elseif ($promote['grand_id'] > 0) {
return '推广员转账';
}
} }
} }

Loading…
Cancel
Save