فهرست منبع

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

zhangl 1 سال پیش
والد
کامیت
6684db6068

+ 2 - 2
common/messages/en-US/ctx.php

@@ -686,8 +686,8 @@ return [
     # 会员等级
     'dbDeclarationLevelBA' => 'BA',
     'dbDeclarationLevelElite' => 'Elite',
-    'dbDeclarationLevelPro' => 'Pro',
-    'dbDeclarationLevelVip' => 'Vip',
+    'dbDeclarationLevelPro' => 'Silver',
+    'dbDeclarationLevelVip' => 'Gold',
     # 管理星级
     'dbEmployLevelNoRank' => 'No Rank',
     'dbEmployLevel1StarDirector'  => '1-Star Director',

+ 2 - 2
common/messages/zh-CN/ctx.php

@@ -690,8 +690,8 @@ return [
     # 等级
     'dbDeclarationLevelBA' => 'BA',
     'dbDeclarationLevelElite' => 'Elite',
-    'dbDeclarationLevelPro' => 'Pro',
-    'dbDeclarationLevelVip' => 'Vip',
+    'dbDeclarationLevelPro' => 'Silver',
+    'dbDeclarationLevelVip' => 'Gold',
     # 管理星级
     'dbEmployLevelNoRank' => '无',
     'dbEmployLevel1StarDirector'  => '1星管理',

+ 1 - 0
common/models/DeclarationLevel.php

@@ -94,6 +94,7 @@ class DeclarationLevel extends \common\components\ActiveRecord
      */
     public static function getFromCache(){
         $data = Yii::$app->cache->get(Cache::DEC_LEVEL_CONFIG_KEY);
+//        Yii::$app->cache->delete(Cache::DEC_LEVEL_CONFIG_KEY);
         if(!$data){
             // 获取信息
             $data = static::find()->where('1=1')->orderBy('PERF ASC, CREATED_AT ASC')->indexBy('ID')->asArray()->all();

+ 2 - 2
common/models/forms/ApproachDeclarationForm.php

@@ -709,7 +709,7 @@ class ApproachDeclarationForm extends Model
                     }
 
                     if($totalPv<$decLevel['PERF']){
-                        if ($hasInstalment && $decLevel['LEVEL_NAME'] == 'Elite'){
+                        if ($hasInstalment && $decLevel['LEVEL_NAME'] == 'Silver'){
                         }else{
                             throw new Exception(Yii::t('app', 'totalBVCanNotLessThanSelectedBV'));
                         }
@@ -720,7 +720,7 @@ class ApproachDeclarationForm extends Model
                         }
                     }
                     if ($this->decLv != $toDecLevel) {
-                        if ($hasInstalment && $decLevel['LEVEL_NAME'] == 'Elite'){
+                        if ($hasInstalment && $decLevel['LEVEL_NAME'] == 'Silver'){
                         }else{
                             throw new Exception(Yii::t('app', 'totalBVCanNotLessThanNextSelectedLevelBV'));
                         }

+ 2 - 2
common/models/forms/DeclarationForm.php

@@ -746,7 +746,7 @@ class DeclarationForm extends Model
                 }
 
                 if($totalPv<$decLevel['PERF']){
-                    if ($hasInstalment && $decLevel['LEVEL_NAME'] == 'Elite'){
+                    if ($hasInstalment && $decLevel['LEVEL_NAME'] == 'Silver'){
                     }else{
                         throw new Exception(Yii::t('app', 'totalBVCanNotLessThanSelectedBV'));
                     }
@@ -757,7 +757,7 @@ class DeclarationForm extends Model
                     }
                 }
                 if ($this->decLv != $toDecLevel) {
-                    if ($hasInstalment && $decLevel['LEVEL_NAME'] == 'Elite'){
+                    if ($hasInstalment && $decLevel['LEVEL_NAME'] == 'Silver'){
                     }else{
                         throw new Exception(Yii::t('app', 'totalBVCanNotLessThanNextSelectedLevelBV') . '-1');
                     }