Bläddra i källkod

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

kevin 1 år sedan
förälder
incheckning
316e851f13
1 ändrade filer med 3 tillägg och 11 borttagningar
  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]);
     }
 
     /**