duqinya лет назад: 5
Родитель
Сommit
0849e17143
2 измененных файлов с 0 добавлено и 23 удалено
  1. 0 18
      app/Http/Controllers/V1/BeanDetailController.php
  2. 0 5
      routes/api.php

+ 0 - 18
app/Http/Controllers/V1/BeanDetailController.php

@@ -18,24 +18,6 @@ class BeanDetailController extends Controller
         $this->beanRepository = $beanRepository;
     }
 
-    //获取指定时间彩虹豆收支明细
-    public function beanDetail(Request $request)
-    {
-        $validator = Validator::make($request->all(), [
-            'type' => ['required',Rule::in([0,1,2,3])],
-        ]);
-        if ($validator->fails()) {
-            return $this->jsonError($validator->errors()->first());
-        }
-
-        $beanDetail = $this->beanRepository->beanDetail($request->all());
-        if ($beanDetail){
-            return $this->jsonSuccess($beanDetail);
-        }else{
-            return $this->jsonSuccess();
-        }
-    }
-
     //排行榜
     public function rankingList(Request $request)
     {

+ 0 - 5
routes/api.php

@@ -67,11 +67,6 @@ $api->version('v1', [
         //收藏列表
         $api->get('postCollect', 'PostCollectController@index');
 
-        //用户彩虹豆明细获取
-        $api->get('beanDetail', 'BeanDetailController@beanDetail');
-        //用户彩虹豆信息获取
-        $api->get('getBean', 'BeanDetailController@getBean');
-
         //优秀居民信息获取
         $api->get('excellentResidents', 'BeanDetailController@excellentResidents');
         //排行榜