Showing
1 changed file
with
5 additions
and
0 deletions
| @@ -28,6 +28,11 @@ class Comment extends Common | @@ -28,6 +28,11 @@ class Comment extends Common | ||
| 28 | if(Request::isAjax()){ | 28 | if(Request::isAjax()){ |
| 29 | $data = Request::except('file'); | 29 | $data = Request::except('file'); |
| 30 | #return json_encode($data['enclosure']); | 30 | #return json_encode($data['enclosure']); |
| 31 | + foreach ($data['enclosure'] as $key => $value) { | ||
| 32 | + if($value['key']=='' || $value['url']==''){ | ||
| 33 | + unset($data['enclosure'][$key]); | ||
| 34 | + } | ||
| 35 | + } | ||
| 31 | $data['pid'] = 0; | 36 | $data['pid'] = 0; |
| 32 | $data['eval_label'] = isset($data['eval_label'])?implode(',',$data['eval_label']):''; | 37 | $data['eval_label'] = isset($data['eval_label'])?implode(',',$data['eval_label']):''; |
| 33 | $data['author'] = $data['author']?$data['author']:'小周'; | 38 | $data['author'] = $data['author']?$data['author']:'小周'; |
-
Please register or login to post a comment