|
@@ -48,6 +48,17 @@ class CpSubscribeStatisticDataController extends CatchController
|
|
|
|
|
|
$cpName = $this->getUserCpName() ?? $cpName;
|
|
$cpName = $this->getUserCpName() ?? $cpName;
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
+ * 临时代码,
|
|
|
|
+ */
|
|
|
|
+ $sql = DB::table('cp_subscribe_statistic_data')
|
|
|
|
+ ->where('id', -1);
|
|
|
|
+ if($isExport) {
|
|
|
|
+ return $sql->get();
|
|
|
|
+ } else {
|
|
|
|
+ return $sql->paginate($perPage);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
|
|
$sql = DB::table('cp_subscribe_statistic_data as statistic')
|
|
$sql = DB::table('cp_subscribe_statistic_data as statistic')
|
|
->leftJoin('books as book', 'statistic.bid' , 'book.id')
|
|
->leftJoin('books as book', 'statistic.bid' , 'book.id')
|
|
@@ -115,6 +126,12 @@ class CpSubscribeStatisticDataController extends CatchController
|
|
|
|
|
|
$cpName = $this->getUserCpName() ?? $cpName;
|
|
$cpName = $this->getUserCpName() ?? $cpName;
|
|
|
|
|
|
|
|
+ return [
|
|
|
|
+ 'yesterday_total_coins' => 0,
|
|
|
|
+ 'yesterday_available_amount' => 0,
|
|
|
|
+ 'yesterday_final_amount' => 0,
|
|
|
|
+ ];
|
|
|
|
+
|
|
$res = DB::table('cp_subscribe_statistic_data as statistic')
|
|
$res = DB::table('cp_subscribe_statistic_data as statistic')
|
|
->leftJoin('books as book', 'statistic.bid' , 'book.id')
|
|
->leftJoin('books as book', 'statistic.bid' , 'book.id')
|
|
->when($bookName, function ($query, $bookName) {
|
|
->when($bookName, function ($query, $bookName) {
|