AddInitDailyRetainSeeder.php 574 B

12345678910111213141516171819202122232425
  1. <?php
  2. use think\migration\Seeder;
  3. class AddInitDailyRetainSeeder extends Seeder
  4. {
  5. /**
  6. * Run Method.
  7. *
  8. * Write your database seeder using this method.
  9. *
  10. * More information on writing seeders is available here:
  11. * http://docs.phinx.org/en/latest/seeding.html
  12. */
  13. public function run()
  14. {
  15. echo "开始创建数据 \n";
  16. $ret = \app\store\model\analysis\AnalysisDailyRetain::addInitVisit();
  17. if (!$ret) {
  18. echo "执行失败!\n";
  19. } else {
  20. echo "执行成功\n";
  21. }
  22. }
  23. }