dyjh 6 年 前
コミット
9278d5359e
1 ファイル変更1 行追加6 行削除
  1. 1 6
      app/Http/Controllers/Api/V1/AlbumBossController.php

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

xqd
@@ -480,12 +480,7 @@ class AlbumBossController extends Controller
             ['updated_at','>=',$start],
             ['updated_at','<=',$end]
         ])->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);
+        $totalCustomerCount = count($totalCustomer);
         return $this->api(compact('totalCustomerCount', 'newCustomerCount', 'shareCount', 'downloadCount', 'customerFollow'));
     }