...
|
...
|
@@ -92,10 +92,10 @@ class ActivityController extends AdminBaseController |
|
|
if($this->request->isPost()){
|
|
|
$param=$this->request->param();
|
|
|
$param['time'] = strtotime($param['time']);
|
|
|
$param['end_time'] = strtotime($param['end_time']);
|
|
|
$param['update_time'] = time();
|
|
|
$validate = new Validate([
|
|
|
'activity_name' => 'require',
|
|
|
|
|
|
'content'=>'require',
|
|
|
'time' => 'require',
|
|
|
'thumbnail'=>'require',
|
...
|
...
|
@@ -200,6 +200,7 @@ class ActivityController extends AdminBaseController |
|
|
$param['create_time']=time();
|
|
|
$param['update_time']=time();
|
|
|
$param['time']=strtotime($param['time']);
|
|
|
$param['end_time']=strtotime($param['end_time']);
|
|
|
$validate = new Validate([
|
|
|
'activity_name' => 'require',
|
|
|
'content'=>'require',
|
...
|
...
|
@@ -208,7 +209,6 @@ class ActivityController extends AdminBaseController |
|
|
]);
|
|
|
$validate->message([
|
|
|
'activity_name'=>'标题不能为空!',
|
|
|
|
|
|
'content' => '内容不能为空!',
|
|
|
'time' => '时间不能为空!',
|
|
|
'thumbnail'=>'请上传缩略图!',
|
...
|
...
|
|