wesmiler 2 hónapja
szülő
commit
6797cd4cd6
1 módosított fájl, 2 hozzáadás és 2 törlés
  1. 2 2
      app/Http/Controllers/Api/v1/IndexController.php

+ 2 - 2
app/Http/Controllers/Api/v1/IndexController.php

@@ -32,7 +32,7 @@ class IndexController extends webApp
             $cacheKey = "caches:config:app_{$appSources}";
             $cacheKey = "caches:config:app_{$appSources}";
             $config = RedisService::get($cacheKey);
             $config = RedisService::get($cacheKey);
             if (empty($config)) {
             if (empty($config)) {
-                //$socialOpen = ConfigService::make()->getConfigByCode('social_open', 0);
+                $socialOpen = ConfigService::make()->getConfigByCode('social_open', 0);
                 $config = [
                 $config = [
                     'app_name' => ConfigService::make()->getConfigByCode('app_name'),
                     'app_name' => ConfigService::make()->getConfigByCode('app_name'),
                     'app_logo' => get_image_url(ConfigService::make()->getConfigByCode('app_logo')),
                     'app_logo' => get_image_url(ConfigService::make()->getConfigByCode('app_logo')),
@@ -46,7 +46,7 @@ class IndexController extends webApp
                     'recharge_desc_3' => format_content(ConfigService::make()->getConfigByCode('recharge_desc_3', '')),
                     'recharge_desc_3' => format_content(ConfigService::make()->getConfigByCode('recharge_desc_3', '')),
                     'wxpay_open' => ConfigService::make()->getConfigByCode('wxpay_open', 0),
                     'wxpay_open' => ConfigService::make()->getConfigByCode('wxpay_open', 0),
                     'pay_recharge_open' => ConfigService::make()->getConfigByCode('pay_recharge_open', 0),
                     'pay_recharge_open' => ConfigService::make()->getConfigByCode('pay_recharge_open', 0),
-                    //'social_open' => $socialOpen,
+                    'social_open' => $socialOpen,
                     'withdraw_open' => ConfigService::make()->getConfigByCode('withdraw_open', 0),
                     'withdraw_open' => ConfigService::make()->getConfigByCode('withdraw_open', 0),
                     'withdraw_min' => ConfigService::make()->getConfigByCode('withdraw_min', 0),
                     'withdraw_min' => ConfigService::make()->getConfigByCode('withdraw_min', 0),
                     'withdraw_fee' => ConfigService::make()->getConfigByCode('withdraw_fee', 0),
                     'withdraw_fee' => ConfigService::make()->getConfigByCode('withdraw_fee', 0),