Commit b9ddfc9db23c99654ce4b6fcafdd2911594453c6

Authored by pengye
1 parent e7374986

no message

... ... @@ -28,6 +28,11 @@ class Comment extends Common
if(Request::isAjax()){
$data = Request::except('file');
#return json_encode($data['enclosure']);
foreach ($data['enclosure'] as $key => $value) {
if($value['key']=='' || $value['url']==''){
unset($data['enclosure'][$key]);
}
}
$data['pid'] = 0;
$data['eval_label'] = isset($data['eval_label'])?implode(',',$data['eval_label']):'';
$data['author'] = $data['author']?$data['author']:'小周';
... ...