|
|
@@ -70,7 +70,7 @@ class GameRegPayDayLogic extends BaseLogic
|
|
|
$tb = "sdk_order_success";
|
|
|
|
|
|
$sDate = "{$this->date} 00:00:00";
|
|
|
- $eDate = date('Y-m-t 23:59:59', strtotime($this->date));
|
|
|
+ $eDate = date('Y-m-d 23:59:59', strtotime($this->date));
|
|
|
|
|
|
$filed = "game_id, agent_id, site_id, '{$this->date}' as pay_date, DATE_FORMAT(reg_date,'%Y-%m-%d') as reg_date, sum(money) as pay_total, sum(paid_amount) as pay_amount, count(distinct uid) as pay_num";
|
|
|
|
|
|
@@ -102,8 +102,8 @@ class GameRegPayDayLogic extends BaseLogic
|
|
|
$filed = "game_id, agent_id, site_id, '{$this->date}' as pay_date,'{$regDate}' as reg_date, sum(money) as addup_pay_total, sum(paid_amount) as addup_pay_amount, count(distinct uid) as addup_pay_num";
|
|
|
|
|
|
$srData = $regDate." 00:00:00";
|
|
|
- $erDate = date('Y-m-t 23:59:59', strtotime($srData));
|
|
|
- $epDate = date('Y-m-t 23:59:59', strtotime($this->date));
|
|
|
+ $erDate = date('Y-m-d 23:59:59', strtotime($srData));
|
|
|
+ $epDate = date('Y-m-d 23:59:59', strtotime($this->date));
|
|
|
$where = [
|
|
|
['reg_date', 'between', [$srData, $erDate]],
|
|
|
['pay_date', 'between', [$srData, $epDate]],
|