|
@@ -114,13 +114,14 @@ class IndexController extends Controller
|
|
|
$contentpages=$ga->contentpages($store,$start_day,$end_day);
|
|
|
$this->addContentpages($contentpages,$store);
|
|
|
}
|
|
|
+
|
|
|
$query=Trafficsource::find()->where(["store"=>$where,'date'=>$start_day]);
|
|
|
$count = $query->count();
|
|
|
if($count>0){
|
|
|
echo $start_day.$store." Trafficsource"."已经执行过,请不要重复执行";
|
|
|
}else{
|
|
|
- $contentpages=$ga->contentpages($store,$start_day,$end_day);
|
|
|
- $this->addContentpages($contentpages,$store);
|
|
|
+ $contentpages=$ga->trafficsource($store,$start_day,$end_day);
|
|
|
+ $this->addSource($contentpages,$store);
|
|
|
}
|
|
|
echo $start_day." 任务完成"."<br/>";
|
|
|
exit;
|