|
@@ -25,7 +25,7 @@ class MonthCountLogic extends BaseLogic |
|
@@ -25,7 +25,7 @@ class MonthCountLogic extends BaseLogic |
|
25
|
*/
|
25
|
*/
|
|
26
|
public function getCountLists($map,$order = 'created_at',$filed = ['*']){
|
26
|
public function getCountLists($map,$order = 'created_at',$filed = ['*']){
|
|
27
|
$map['project_id'] = $this->user['project_id'];
|
27
|
$map['project_id'] = $this->user['project_id'];
|
|
28
|
- $lists = $this->model->list($map,$order,$filed,'desc',20);
|
28
|
+ $lists = $this->model->list($map,$order,$filed,'desc',12);
|
|
29
|
if(isset($this->project['is_record_china_visit']) && ($this->project['is_record_china_visit'] == 0)){
|
29
|
if(isset($this->project['is_record_china_visit']) && ($this->project['is_record_china_visit'] == 0)){
|
|
30
|
foreach ($lists as $k => $v){
|
30
|
foreach ($lists as $k => $v){
|
|
31
|
if(empty($v['source_country'])){
|
31
|
if(empty($v['source_country'])){
|
|
@@ -55,7 +55,7 @@ class MonthCountLogic extends BaseLogic |
|
@@ -55,7 +55,7 @@ class MonthCountLogic extends BaseLogic |
|
55
|
*/
|
55
|
*/
|
|
56
|
public function getIpPvCount(){
|
56
|
public function getIpPvCount(){
|
|
57
|
$count = new Count();
|
57
|
$count = new Count();
|
|
58
|
- $startTime = date("Y-m-d", strtotime("-9 months", mktime(0, 0, 0)));
|
58
|
+ $startTime = date("Y-m-d", strtotime("-11 months", mktime(0, 0, 0)));
|
|
59
|
$ensTime = date('Y-m-d',time());
|
59
|
$ensTime = date('Y-m-d',time());
|
|
60
|
$lists = $count->list(['date'=>['between',[$startTime,$ensTime]],'project_id'=>$this->user['project_id']],'id',['*'],'asc');
|
60
|
$lists = $count->list(['date'=>['between',[$startTime,$ensTime]],'project_id'=>$this->user['project_id']],'id',['*'],'asc');
|
|
61
|
$groupedData = [];
|
61
|
$groupedData = [];
|