|
@@ -71,7 +71,7 @@ class IndexController extends Controller
|
|
|
|
|
|
$data=$ga->trafficsource($store,$start_day,$end_day);
|
|
|
$this->addSource($data,$store);
|
|
|
- echo $start_day." 任务完成";
|
|
|
+ echo $start_day." 任务完成"."<br/>";
|
|
|
exit;
|
|
|
|
|
|
|
|
@@ -126,11 +126,11 @@ class IndexController extends Controller
|
|
|
if($i%$limit==0||$i==count($data)){
|
|
|
\Yii::$app->db->createCommand()->batchInsert(Trafficsource::tableName(), $modelKey, $list)->execute();
|
|
|
$list=[];
|
|
|
- echo "addSource 任务完成".$i."个"."\n";
|
|
|
+ echo "addSource 任务完成".$i."个"."<br/>";
|
|
|
}
|
|
|
$i++;
|
|
|
}
|
|
|
- echo "addSource 任务全部完成"."\n";
|
|
|
+ echo "addSource 任务全部完成"."<br/>";
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -173,11 +173,11 @@ class IndexController extends Controller
|
|
|
if($i%$limit==0||$i==count($contentpages)){
|
|
|
\Yii::$app->db->createCommand()->batchInsert(ContentPage::tableName(), $modelKey, $list)->execute();
|
|
|
$list=[];
|
|
|
- echo "addContentpages 任务完成".$i."个"."\n";
|
|
|
+ echo "addContentpages 任务完成".$i."个"."<br/>";
|
|
|
}
|
|
|
$i++;
|
|
|
}
|
|
|
- echo "addContentpages 任务全部完成"."\n";
|
|
|
+ echo "addContentpages 任务全部完成"."<br/>";
|
|
|
}
|
|
|
|
|
|
}
|