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));
foreach ($noExistKeys as $key) {
$records[$key] = $zeroValue;

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

Loading…
Cancel
Save