Merge branch 'dev'
This commit is contained in:
@@ -18,7 +18,7 @@ class VideoValidate extends Validate
|
||||
'language_id' => 'require|integer',
|
||||
'category_id' => 'require|integer',
|
||||
'name' => 'require|max:64',
|
||||
'desc' => 'max:255',
|
||||
'desc' => 'max:512',
|
||||
'image' => 'max:125',
|
||||
'video' => 'max:125',
|
||||
'link' => 'url|max:125',
|
||||
@@ -44,7 +44,7 @@ class VideoValidate extends Validate
|
||||
'category_id.integer' => '分类参数类型错误',
|
||||
'name.require' => '名称不能为空',
|
||||
'name.max' => '名称不能超过64个字符',
|
||||
'desc.max' => '描述不能超过255个字符',
|
||||
'desc.max' => '描述不能超过512个字符',
|
||||
'image.max' => '图片不能超过125个字符',
|
||||
'video.max' => '视频不能超过125个字符',
|
||||
'link.url' => '链接格式错误',
|
||||
|
||||
@@ -60,27 +60,27 @@ class DataMigration extends Command
|
||||
// $this->migrateProductPurchaseLinks();
|
||||
|
||||
// 迁移文章
|
||||
$this->migrateArticle([
|
||||
16 => 7,
|
||||
31 => 9,
|
||||
32 => 8,
|
||||
// 68 => 10,
|
||||
// 69 => 11,
|
||||
// 70 => 12,
|
||||
// 71 => 13,
|
||||
// 72 => 14,
|
||||
// 73 => 15,
|
||||
// 74 => 16,
|
||||
// 75 => 17,
|
||||
// 78 => 19,
|
||||
// 79 => 20,
|
||||
// 80 => 21,
|
||||
// 81 => 22,
|
||||
// 82 => 23,
|
||||
// 83 => 24,
|
||||
// 84 => 25,
|
||||
// 85 => 26
|
||||
]);
|
||||
// $this->migrateArticle([
|
||||
// 16 => 7,
|
||||
// 31 => 9,
|
||||
// 32 => 8,
|
||||
// 68 => 10,
|
||||
// 69 => 11,
|
||||
// 70 => 12,
|
||||
// 71 => 13,
|
||||
// 72 => 14,
|
||||
// 73 => 15,
|
||||
// 74 => 16,
|
||||
// 75 => 17,
|
||||
// 78 => 19,
|
||||
// 79 => 20,
|
||||
// 80 => 21,
|
||||
// 81 => 22,
|
||||
// 82 => 23,
|
||||
// 83 => 24,
|
||||
// 84 => 25,
|
||||
// 85 => 26
|
||||
// ]);
|
||||
|
||||
// 迁移faq
|
||||
// $this->migrateFaq();
|
||||
|
||||
Reference in New Issue
Block a user