소스 검색

test insert

chengwl 4 년 전
부모
커밋
322ff8ba4b
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      controllers/IndexController.php

+ 1 - 0
controllers/IndexController.php

@@ -147,6 +147,7 @@ class IndexController extends Controller
           if($i%$limit==0||$i==count($contentpages)){
           if($i%$limit==0||$i==count($contentpages)){
             \Yii::$app->db->createCommand()->batchInsert(ContentPage::tableName(), $modelKey, $list)->execute();
             \Yii::$app->db->createCommand()->batchInsert(ContentPage::tableName(), $modelKey, $list)->execute();
             $list=[];
             $list=[];
+            echo 111111;exit;
           }
           }
           $i++;
           $i++;
         }
         }