first commit

This commit is contained in:
编码猿
2024-09-27 01:32:49 +08:00
commit 28ebe05a64
7399 changed files with 1174529 additions and 0 deletions

View 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);
}
}