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'));
     }