|
...
|
...
|
@@ -38,12 +38,12 @@ class Comment extends Common |
|
|
|
$data['enclosure'] = json_encode($data['enclosure']);
|
|
|
|
#unset($data['enclosure']);
|
|
|
|
$succ = httpRequest(ON_LINE.'App.User.SetComment', 'post', $data);
|
|
|
|
#$succ = json_decode($succ,true);
|
|
|
|
#if($succ['data']){
|
|
|
|
# return $result = ['code'=>1,'msg'=>'评论成功!','data'=>$data,'rel'=>1];#
|
|
|
|
#}else{
|
|
|
|
$succ = json_decode($succ,true);
|
|
|
|
if($succ['data']){
|
|
|
|
return $result = ['code'=>1,'msg'=>'评论成功!','data'=>$data,'rel'=>1];#
|
|
|
|
}else{
|
|
|
|
return $result = ['code'=>0,'msg'=>'评论失败!','data'=>$data,'fail'=>$succ];#
|
|
|
|
#}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
return $this->fetch();
|
...
|
...
|
|