chengwl 4 年之前
父节点
当前提交
d46398db42
共有 1 个文件被更改,包括 5 次插入5 次删除
  1. 5 5
      controllers/IndexController.php

+ 5 - 5
controllers/IndexController.php

@@ -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/>";
         }
 
     }