소스 검색

feat: UN-71: 会员-奖金列表调整

kevin 1 년 전
부모
커밋
316e851f13
1개의 변경된 파일3개의 추가작업 그리고 11개의 파일을 삭제
  1. 3 11
      backendApi/modules/v1/controllers/ConfigController.php

+ 3 - 11
backendApi/modules/v1/controllers/ConfigController.php

@@ -95,18 +95,10 @@ class ConfigController extends BaseController {
             if($config['INPUT_TYPE'] == Config::INPUT_TYPE_TABLE) {
                 $configs[$key]['VALUE'] = Json::decode($config['VALUE']);
             }
-            $configs[$key]['TITLE'] = Yii::t('ctx', $config['LANGUAGE_KEY']);
+            $configs[$key]['TITLE'] = $config['LANGUAGE_KEY'] ? Yii::t('ctx', $config['LANGUAGE_KEY']) : $config['TITLE'];
         }
-        // 获取会员报单级别的相关参数
-//        $decLevel = Cache::getDecLevelConfig();
-        // 获取会员聘级相关参数
-//        $empLevel = Cache::getEmpLevelConfig();
-        $result = [
-            'config' => $configs,
-//            'decLevel' => $decLevel,
-//            'empLevel' => $empLevel,
-        ];
-        return static::notice($result);
+
+        return static::notice(['config' => $configs]);
     }
 
     /**