diff --git a/Application/Base/Repository/PromoteRepository.class.php b/Application/Base/Repository/PromoteRepository.class.php index 9f2f55f50..b21ee2073 100644 --- a/Application/Base/Repository/PromoteRepository.class.php +++ b/Application/Base/Repository/PromoteRepository.class.php @@ -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; diff --git a/Application/Home/Controller/PromoteCoinController.class.php b/Application/Home/Controller/PromoteCoinController.class.php index 8b0b048e3..953193a23 100644 --- a/Application/Home/Controller/PromoteCoinController.class.php +++ b/Application/Home/Controller/PromoteCoinController.class.php @@ -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 . '转账'; } }