Showing
1 changed file
with
2 additions
and
1 deletions
| @@ -26,7 +26,7 @@ class Comment extends Common | @@ -26,7 +26,7 @@ class Comment extends Common | ||
| 26 | public function addcommit(){ | 26 | public function addcommit(){ |
| 27 | if(Request::isAjax()){ | 27 | if(Request::isAjax()){ |
| 28 | $data = Request::except('file'); | 28 | $data = Request::except('file'); |
| 29 | - return json_encode($data['enclosure']); | 29 | + #return json_encode($data['enclosure']); |
| 30 | $data['pid'] = 0; | 30 | $data['pid'] = 0; |
| 31 | $data['eval_label'] = implode(',',$data['eval_label']); | 31 | $data['eval_label'] = implode(',',$data['eval_label']); |
| 32 | $data['author'] = $data['author_openid']?'':'小周'; | 32 | $data['author'] = $data['author_openid']?'':'小周'; |
| @@ -35,6 +35,7 @@ class Comment extends Common | @@ -35,6 +35,7 @@ class Comment extends Common | ||
| 35 | $data['types'] = 1; | 35 | $data['types'] = 1; |
| 36 | $data['status'] = 1; | 36 | $data['status'] = 1; |
| 37 | $data['create_time'] = strtotime($data['create_time']); | 37 | $data['create_time'] = strtotime($data['create_time']); |
| 38 | + $data['enclosure'] = json_encode($data['enclosure']); | ||
| 38 | #unset($data['enclosure']); | 39 | #unset($data['enclosure']); |
| 39 | $succ = httpRequest(ON_LINE.'App.User.SetComment', 'post', $data); | 40 | $succ = httpRequest(ON_LINE.'App.User.SetComment', 'post', $data); |
| 40 | #$succ = json_decode($succ,true); | 41 | #$succ = json_decode($succ,true); |
-
Please register or login to post a comment