Commit b9ddfc9db23c99654ce4b6fcafdd2911594453c6

Authored by pengye
1 parent e7374986

no message

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