Explorar o código

feat: NG-15: 新会员注册时增加国家与语言选项.

zhangl hai 1 ano
pai
achega
d4398a1518

+ 1 - 0
common/messages/en-US/app.php

@@ -227,6 +227,7 @@ return [
     # 奖金
     'memberBonus' => 'Member Bonus',
     'memberEcoin' => 'Member Ecoin',
+    'memberPrp' => 'Member Ecoin',
     'carPoints' => 'Car Points',
     'villaPoints' => 'Villa Points',
     'increase' => 'increase',

+ 1 - 0
common/messages/zh-CN/app.php

@@ -231,6 +231,7 @@ return [
     # 奖金
     'memberBonus' => '收益积分',
     'memberEcoin' => '电子币',
+    'memberPrp' => '绩效奖金',
     'carPoints' => '车奖积分',
     'villaPoints' => '房奖积分',
     'increase' => '增加',

+ 4 - 9
frontendApi/modules/v1/controllers/BonusController.php

@@ -89,17 +89,12 @@ class BonusController extends BaseController {
         $country = Countries::getById($user['COUNTRY_ID']);
         $currency = Currency::getById($country['LOCAL_CURRENCY_ID']);
 
-        //是否显示车房领袖
-//        $showCFLX = true;
-//        if ($data['CF'] <= 0 && $data['LX'] <= 0) {
-//            $showCFLX = false;
-//            //查看历史最高聘级是否到过五钻
-//            if (EmployLevel::getSortById(Info::getHighEmpLv($userId)) >= 7) {
-//                $showCFLX = true;
-//            }
-//        }
+        // TODO: PRP账户
+        $data['PRP'] = 0;
+
         $wallet[] = ['walletType' => 'bonus', 'walletName' => Yii::t('app', 'memberBonus'), 'amount' => Tool::formatPrice($data['BONUS'])];//会员奖金
         $wallet[] = ['walletType' => 'cash', 'walletName' => Yii::t('app', 'memberEcoin'), 'amount' => Tool::formatPrice($data['CASH']), 'coin' => $currency['CODE']];//会员余额
+        $wallet[] = ['walletType' => 'prp', 'walletName' => Yii::t('app', 'memberPrp'), 'amount' => Tool::formatPrice($data['PRP']), 'coin' => $currency['CODE']];//会员余额
 //        $wallet[] = ['walletType' => 'point', 'walletName' => '会员积分', 'amount' => Tool::formatPrice($data['RECONSUME_POINTS'])];
 //        $wallet[] = ['walletType' => 'exchange', 'walletName' => 'Exchange points', 'amount' => Tool::formatPrice($data['EXCHANGE_POINTS'])];//兑换点数
 //        $wallet[] = ['walletType' => 'tourism_points', 'walletName' => 'Travel points', 'amount' => Tool::formatPrice($data['TOURISM_POINTS'])];//旅游积分