Commit 2184b5928819562ff424695840ccdc7001971c86

Authored by pengye
1 parent c1b312ed

no message

... ... @@ -26,7 +26,7 @@ class Comment extends Common
public function addcommit(){
if(Request::isAjax()){
$data = Request::except('file');
return json_encode($data['enclosure']);
#return json_encode($data['enclosure']);
$data['pid'] = 0;
$data['eval_label'] = implode(',',$data['eval_label']);
$data['author'] = $data['author_openid']?'':'小周';
... ... @@ -35,6 +35,7 @@ class Comment extends Common
$data['types'] = 1;
$data['status'] = 1;
$data['create_time'] = strtotime($data['create_time']);
$data['enclosure'] = json_encode($data['enclosure']);
#unset($data['enclosure']);
$succ = httpRequest(ON_LINE.'App.User.SetComment', 'post', $data);
#$succ = json_decode($succ,true);
... ...