wzq 5 anni fa
parent
commit
6d6ee9384b
1 ha cambiato i file con 3 aggiunte e 0 eliminazioni
  1. 3 0
      app/Repositories/FloorRepository.php

+ 3 - 0
app/Repositories/FloorRepository.php

@@ -52,15 +52,18 @@ class FloorRepository
 
     public function info()
     {
+        Log::debug('推荐内容楼层-开始请求');
         $userInfo = $this->getUserInfo();
         if(!$userInfo){
             return jsonError('获取用户信息失败');
         }
+        Log::debug('推荐内容楼层-用户信息'.json_encode($userInfo));
         $floor = $this->floor
             ->where('is_open', 1)
             ->whereIn('floor_type', [0,1,2,3])
             ->whereBetween('floor_location', [1,20])
             ->get();
+        Log::debug('推荐内容楼层-楼层列表'.json_encode($floor));
         $data = [];
         foreach($floor as $item){
             if($item->floor_type == 0){