Commit 5cae7976fe1927dfa198c139db68067fcfac75be

Authored by pengye
1 parent 4b17ceb0

no message

@@ -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();