...
|
...
|
@@ -95,14 +95,13 @@ class ActivityController extends AdminBaseController |
|
|
$param['update_time'] = time();
|
|
|
$validate = new Validate([
|
|
|
'activity_name' => 'require',
|
|
|
'abstract'=>'require',
|
|
|
|
|
|
'content'=>'require',
|
|
|
'time' => 'require',
|
|
|
'thumbnail'=>'require',
|
|
|
]);
|
|
|
$validate->message([
|
|
|
'activity_name'=>'标题不能为空!',
|
|
|
'abstract'=>'摘要不能为空!',
|
|
|
'content' => '内容不能为空!',
|
|
|
'time' => '时间不能为空!',
|
|
|
'thumbnail'=>'请上传缩略图!',
|
...
|
...
|
@@ -149,14 +148,13 @@ class ActivityController extends AdminBaseController |
|
|
$param['update_time'] = time();
|
|
|
$validate = new Validate([
|
|
|
'activity_name' => 'require',
|
|
|
'abstract'=>'require',
|
|
|
|
|
|
'content'=>'require',
|
|
|
'time' => 'require',
|
|
|
'thumbnail'=>'require',
|
|
|
]);
|
|
|
$validate->message([
|
|
|
'activity_name'=>'标题不能为空!',
|
|
|
'abstract'=>'摘要不能为空!',
|
|
|
'content' => '内容不能为空!',
|
|
|
'time' => '时间不能为空!',
|
|
|
'thumbnail'=>'请上传缩略图!',
|
...
|
...
|
@@ -204,14 +202,14 @@ class ActivityController extends AdminBaseController |
|
|
$param['time']=strtotime($param['time']);
|
|
|
$validate = new Validate([
|
|
|
'activity_name' => 'require',
|
|
|
'abstract'=>'require',
|
|
|
|
|
|
'content'=>'require',
|
|
|
'time' => 'require',
|
|
|
'thumbnail'=>'require',
|
|
|
]);
|
|
|
$validate->message([
|
|
|
'activity_name'=>'标题不能为空!',
|
|
|
'abstract'=>'摘要不能为空!',
|
|
|
|
|
|
'content' => '内容不能为空!',
|
|
|
'time' => '时间不能为空!',
|
|
|
'thumbnail'=>'请上传缩略图!',
|
...
|
...
|
@@ -253,14 +251,14 @@ class ActivityController extends AdminBaseController |
|
|
$param['time']=strtotime($param['time']);
|
|
|
$validate = new Validate([
|
|
|
'activity_name' => 'require',
|
|
|
'abstract'=>'require',
|
|
|
|
|
|
'content'=>'require',
|
|
|
'time' => 'require',
|
|
|
'thumbnail'=>'require',
|
|
|
]);
|
|
|
$validate->message([
|
|
|
'activity_name'=>'标题不能为空!',
|
|
|
'abstract'=>'摘要不能为空!',
|
|
|
|
|
|
'content' => '内容不能为空!',
|
|
|
'time' => '时间不能为空!',
|
|
|
'thumbnail'=>'请上传缩略图!',
|
...
|
...
|
|