|
|
@@ -324,21 +324,21 @@ class BonusController extends BaseController {
|
|
|
->one();
|
|
|
|
|
|
$result = [
|
|
|
- ['name' => 'userName', 'value' => $data['USER_NAME']],
|
|
|
- ['name' => 'period', 'value' => $periodNum],
|
|
|
- ['name' => 'decLevel', 'value' => Cache::getDecLevelConfig()[($data['LAST_DEC_LV'] ?: DeclarationLevel::getDefaultLevelId())]['LEVEL_NAME']],
|
|
|
- ['name' => 'empLevel', 'value' => Cache::getEmpLevelConfig()[($data['LAST_EMP_LV'] ?: EmployLevel::getDefaultLevelId())]['LEVEL_NAME']],
|
|
|
- ['name' => 'eliteLevel', 'value' => Cache::getEliteLevelConfig()[($data['LAST_ELITE_LV'] ?: EliteLevel::getDefaultLevelId())]['LEVEL_NAME']],
|
|
|
- ['name' => 'isActive', 'value' => $data['IS_ACTIVE'] ?? 0],
|
|
|
- ['name' => 'eliteBonus', 'value' => Tool::formatPrice($data['BONUS_E'])],
|
|
|
- ['name' => 'proEliteBonus', 'value' => Tool::formatPrice($data['BONUS_PE'])],
|
|
|
- ['name' => 'superEliteBonus', 'value' => Tool::formatPrice($data['BONUS_SE'])],
|
|
|
- ['name' => 'leaderShipBonus', 'value' => Tool::formatPrice($data['BONUS_LB'])],
|
|
|
- ['name' => 'stockistBonus', 'value' => Tool::formatPrice($data['BONUS_ST'])],
|
|
|
- ['name' => 'welcomeBonus', 'value' => Tool::formatPrice($data['BONUS_WB'])],
|
|
|
- ['name' => 'carBonus', 'value' => Tool::formatPrice($data['BONUS_CAR'])],
|
|
|
- ['name' => 'totalBonus', 'value' => Tool::formatPrice($data['BONUS_TOTAL'])],
|
|
|
- ['name' => 'userPerformanceBonus', 'value' => Tool::formatPrice($data['BONUS_PB'])],
|
|
|
+ 'userName' => $data['USER_NAME'],
|
|
|
+ 'period' => $periodNum,
|
|
|
+ 'decLevel' => Cache::getDecLevelConfig()[($data['LAST_DEC_LV'] ?: DeclarationLevel::getDefaultLevelId())]['LEVEL_NAME'],
|
|
|
+ 'empLevel' => Cache::getEmpLevelConfig()[($data['LAST_EMP_LV'] ?: EmployLevel::getDefaultLevelId())]['LEVEL_NAME'],
|
|
|
+ 'eliteLevel', 'value' => Cache::getEliteLevelConfig()[($data['LAST_ELITE_LV'] ?: EliteLevel::getDefaultLevelId())]['LEVEL_NAME'],
|
|
|
+ 'isActive' => $data['IS_ACTIVE'] ?? 0,
|
|
|
+ 'eliteBonus' => Tool::formatPrice($data['BONUS_E']),
|
|
|
+ 'proEliteBonus' => Tool::formatPrice($data['BONUS_PE']),
|
|
|
+ 'superEliteBonus' => Tool::formatPrice($data['BONUS_SE']),
|
|
|
+ 'leaderShipBonus' => Tool::formatPrice($data['BONUS_LB']),
|
|
|
+ 'stockistBonus' => Tool::formatPrice($data['BONUS_ST']),
|
|
|
+ 'welcomeBonus' => Tool::formatPrice($data['BONUS_WB']),
|
|
|
+ 'carBonus' => Tool::formatPrice($data['BONUS_CAR']),
|
|
|
+ 'totalBonus' => Tool::formatPrice($data['BONUS_TOTAL']),
|
|
|
+ 'userPerformanceBonus' => Tool::formatPrice($data['BONUS_PB']),
|
|
|
];
|
|
|
|
|
|
return static::notice($result);
|