wesmiler 7 месяцев назад
Родитель
Сommit
492531a836
1 измененных файлов с 1 добавлено и 18 удалено
  1. 1 18
      app/Http/Controllers/Api/v1/IndexController.php

+ 1 - 18
app/Http/Controllers/Api/v1/IndexController.php

@@ -34,19 +34,9 @@ class IndexController extends webApp
                     'app_name' => ConfigService::make()->getConfigByCode('app_name'),
                     'app_logo' => get_image_url(ConfigService::make()->getConfigByCode('app_logo')),
                     'app_version' => ConfigService::make()->getConfigByCode('app_version'),
-                    'app_android_url' => ConfigService::make()->getConfigByCode('app_android_url'),
-                    'deposit_money' => ConfigService::make()->getConfigByCode('deposit_money'),
-                    'deposit_desc' => format_content(ConfigService::make()->getConfigByCode('deposit_desc', '')),
-                    'deposit_refund_desc' => format_content(ConfigService::make()->getConfigByCode('deposit_refund_desc', '')),
-                    'alipay_open' => ConfigService::make()->getConfigByCode('alipay_open', 1),
                     'wxpay_open' => ConfigService::make()->getConfigByCode('wxpay_open', 1),
-                    'withdraw_open' => ConfigService::make()->getConfigByCode('withdraw_open', 1),
-                    'withdraw_min' => ConfigService::make()->getConfigByCode('withdraw_min', 0),
-                    'withdraw_fee' => ConfigService::make()->getConfigByCode('withdraw_fee', 0),
                     'kfUrl' => ConfigService::make()->getConfigByCode('wechat_kf_url', ''),
-                    'img_compress'=> ConfigService::make()->getConfigByCode('preview_img_compress', ''),
                     'notices' => NoticeService::make()->getRecommandList(),
-
                 ];
                 RedisService::set($cacheKey, $config, 3600);
             }
@@ -64,17 +54,10 @@ class IndexController extends webApp
      */
     public function data()
     {
-        $userInfo = MemberService::make()->getInfo($this->userId,[], true);
-        $confirmStatus = isset($userInfo['confirm_status'])? $userInfo['confirm_status'] : 0;
-        $pickerStatus = isset($userInfo['picker_status'])? $userInfo['picker_status'] : 0;
-        if($confirmStatus != 1 || $pickerStatus!= 1){
-            return message(2043, false,[],405);
-        }
-
         $data = [
             // 线上课程
             'courses' => [],
-            'articles'=>[]
+            'articles'=>[],
         ];
         return showJson(1010, true, $data);
     }