first commit
This commit is contained in:
50
滴滴淘/diditao/database/seeds/UserInviteChannelSeed.php
Normal file
50
滴滴淘/diditao/database/seeds/UserInviteChannelSeed.php
Normal file
@@ -0,0 +1,50 @@
|
||||
<?php
|
||||
|
||||
use think\migration\Seeder;
|
||||
|
||||
class UserInviteChannelSeed extends Seeder
|
||||
{
|
||||
/**
|
||||
* Run Method.
|
||||
*
|
||||
* Write your database seeder using this method.
|
||||
*
|
||||
* More information on writing seeders is available here:
|
||||
* http://docs.phinx.org/en/latest/seeding.html
|
||||
*/
|
||||
public function run()
|
||||
{
|
||||
$data = [
|
||||
[
|
||||
'title'=>'微信群',
|
||||
'remark'=>'通过微信群的方式推广'
|
||||
],
|
||||
[
|
||||
'title'=>'QQ群',
|
||||
'remark'=>'通过QQ群的方式推广'
|
||||
],
|
||||
[
|
||||
'title'=>'微信朋友圈',
|
||||
'remark'=>'通过微信朋友圈的方式推广'
|
||||
],
|
||||
[
|
||||
'title'=>'QQ空间',
|
||||
'remark'=>'通过QQ空间的方式推广'
|
||||
],
|
||||
[
|
||||
'title'=>'百度贴吧',
|
||||
'remark'=>'通过百度贴吧发帖留言的方式推广'
|
||||
],
|
||||
[
|
||||
'title'=>'网络论坛',
|
||||
'remark'=>'通过网络论坛发帖留言的方式推广'
|
||||
],
|
||||
[
|
||||
'title'=>'其他方式',
|
||||
'remark'=>'通过其他方式推广'
|
||||
],
|
||||
];
|
||||
$userInviteChannel = new \diditao\orm\model\app_setting\UserInviteChannel();
|
||||
$userInviteChannel->saveAll($data);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user