|
...
|
...
|
@@ -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']:'小周';
|
...
|
...
|
|