dyjh 6 년 전
부모
커밋
49dfaaf728
1개의 변경된 파일7개의 추가작업 그리고 1개의 파일을 삭제
  1. 7 1
      app/Http/Controllers/Api/V1/AlbumBossController.php

+ 7 - 1
app/Http/Controllers/Api/V1/AlbumBossController.php

xqd
@@ -479,7 +479,13 @@ class AlbumBossController extends Controller
             ['store_id', $store_id],
             ['updated_at','>=',$start],
             ['updated_at','<=',$end]
-        ])->orderByDesc('id')->groupBy('open_id')->count();
+        ])->orderByDesc('id')->groupBy('open_id')->get();
+        $totalCustomerCount = AlbumWatchRecord::where([
+            ['store_id', $store_id],
+            ['updated_at','>=',$start],
+            ['updated_at','<=',$end]
+        ])->orderByDesc('id')->groupBy('open_id')->count();print_r($totalCustomer);print_r($end);
+        dd($start);
         return $this->api(compact('totalCustomerCount', 'newCustomerCount', 'shareCount', 'downloadCount', 'customerFollow'));
     }