Showing
1 changed file
with
4 additions
and
4 deletions
| @@ -36,11 +36,11 @@ class Comment extends Common | @@ -36,11 +36,11 @@ class Comment extends Common | ||
| 36 | 36 | ||
| 37 | $succ = httpRequest(ON_LINE.'App.User.SetComment', 'post', $data); | 37 | $succ = httpRequest(ON_LINE.'App.User.SetComment', 'post', $data); |
| 38 | #$succ = json_decode($succ,true); | 38 | #$succ = json_decode($succ,true); |
| 39 | - if($succ['data']){ | ||
| 40 | - return $result = ['code'=>1,'msg'=>'评论成功!','data'=>$data,'rel'=>1];# | ||
| 41 | - }else{ | 39 | + #if($succ['data']){ |
| 40 | + # return $result = ['code'=>1,'msg'=>'评论成功!','data'=>$data,'rel'=>1];# | ||
| 41 | + #}else{ | ||
| 42 | return $result = ['code'=>0,'msg'=>'评论失败!','data'=>$data,'fail'=>$succ];# | 42 | return $result = ['code'=>0,'msg'=>'评论失败!','data'=>$data,'fail'=>$succ];# |
| 43 | - } | 43 | + #} |
| 44 | 44 | ||
| 45 | } | 45 | } |
| 46 | return $this->fetch(); | 46 | return $this->fetch(); |
-
Please register or login to post a comment