Commit cf5f8b5e903c39909532f8f0feb0f7ea0465cf9f

Authored by pengye
1 parent 854c82b9

no message

@@ -45,8 +45,9 @@ class Comment extends Common @@ -45,8 +45,9 @@ class Comment extends Common
45 } 45 }
46 46
47 $succ = httpRequest(ON_LINE.'App.User.SetComment', 'post', $data); 47 $succ = httpRequest(ON_LINE.'App.User.SetComment', 'post', $data);
48 - $succ = json_decode($succ,true);  
49 return $result = ['code'=>0,'msg'=>'评论失败!','data'=>$data,'fail'=>$succ];# 48 return $result = ['code'=>0,'msg'=>'评论失败!','data'=>$data,'fail'=>$succ];#
  49 + $succ = json_decode($succ,true);
  50 +
50 if($succ['data']){ 51 if($succ['data']){
51 return $result = ['code'=>1,'msg'=>'评论成功!','data'=>$data,'rel'=>1];# 52 return $result = ['code'=>1,'msg'=>'评论成功!','data'=>$data,'rel'=>1];#
52 }else{ 53 }else{