|
@@ -76,6 +76,8 @@ class BaseTotalHourDataReportLogic extends BaseDataReportLogic
|
|
|
// 重置数据
|
|
// 重置数据
|
|
|
$this->data = [];
|
|
$this->data = [];
|
|
|
|
|
|
|
|
|
|
+ $this->installData();
|
|
|
|
|
+
|
|
|
$this->regData();
|
|
$this->regData();
|
|
|
|
|
|
|
|
$this->loginData();
|
|
$this->loginData();
|
|
@@ -93,6 +95,22 @@ class BaseTotalHourDataReportLogic extends BaseDataReportLogic
|
|
|
$this->replaceData(['tdate'=>$this->date, 'thour'=>$this->hour]);
|
|
$this->replaceData(['tdate'=>$this->date, 'thour'=>$this->hour]);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ // 激活数
|
|
|
|
|
+ protected function installData()
|
|
|
|
|
+ {
|
|
|
|
|
+ $sTime = strtotime("{$this->date} 00:00:00");
|
|
|
|
|
+ $eTime = strtotime("{$this->date} 23:59:59");
|
|
|
|
|
+
|
|
|
|
|
+ $regTotalTb = "sdk_activate_log_" . date('Ym', strtotime($this->date));
|
|
|
|
|
+ $filed = "game_id, agent_id, site_id, '{$this->date}' as tdate, '{$this->hour}' as thour, count(distinct concat(imei, oaid)) as install";
|
|
|
|
|
+
|
|
|
|
|
+ $where = [
|
|
|
|
|
+ ['activate_time', 'between', [$sTime, $eTime]],
|
|
|
|
|
+ ];
|
|
|
|
|
+ $result = Db::connect('db_game_log')->table($regTotalTb)->field($filed)->where($where)->group($this->group)->select();
|
|
|
|
|
+ $this->pushData($result);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
protected function regData()
|
|
protected function regData()
|
|
|
{
|
|
{
|
|
|
$sTime = strtotime("{$this->date} {$this->hour}:00:00");
|
|
$sTime = strtotime("{$this->date} {$this->hour}:00:00");
|