2 Commits

Author SHA1 Message Date
900b94ca78 refactor: 修改migration文件 2025-03-25 10:36:42 +08:00
9ac1fe00d9 refactor: 验证码去除大小写区别 2025-03-25 10:36:23 +08:00
2 changed files with 2 additions and 2 deletions

View File

@@ -7,7 +7,7 @@ return [
//验证码位数
'length' => 5,
// 验证码字符集合
'codeSet' => '2345678abcdefhijkmnpqrstuvwxyzABCDEFGHJKLMNPQRTUVWXY',
'codeSet' => '0123456789abcdefghijklmnopqrstuvwxyz',
// 验证码过期时间
'expire' => 300,
// 是否使用中文验证码

View File

@@ -34,7 +34,7 @@ class CreateVideo extends Migrator
->addColumn('name', 'string', ['limit' => 64 , 'null' => false, 'comment' => '名称'])
->addColumn('desc', 'string', ['limit' => 255, 'null' => true, 'default' => null, 'comment' => '描述信息'])
->addColumn('image', 'string', ['limit' => 125, 'null' => false, 'comment' => '封面图片'])
->addColumn('video', 'string', ['limit' => 125, 'null' => false, 'comment' => '视频地址'])
->addColumn('video', 'string', ['limit' => 125, 'null' => true, 'default' => null, 'comment' => '视频地址'])
->addColumn('link', 'string', ['limit' => 125, 'null' => true, 'default' => null, 'comment' => '外链地址'])
->addColumn('sort', 'integer', ['null' => false, 'default' => 0, 'comment' => '排序'])
->addColumn('recommend', 'boolean', ['null' => false, 'default' => 1, 'comment' => '是否推荐:1是,0否'])