Showing
2 changed files
with
10 additions
and
1 deletions
| @@ -14,6 +14,14 @@ class Comment extends Common | @@ -14,6 +14,14 @@ class Comment extends Common | ||
| 14 | * 评论list | 14 | * 评论list |
| 15 | */ | 15 | */ |
| 16 | public function CommentList(){ | 16 | public function CommentList(){ |
| 17 | + $succ = httpRequest(ON_LINE.'App.User.SetComment', 'post', $data); | ||
| 18 | + #return $result = ['code'=>0,'msg'=>'评论失败!','data'=>$data,'fail'=>$succ];# | ||
| 19 | + $succ = json_decode($succ,true); | ||
| 20 | + if($succ['data']){ | ||
| 21 | + return $result = ['code'=>1,'msg'=>'评论成功!','data'=>$data,'rel'=>1];# | ||
| 22 | + }else{ | ||
| 23 | + return $result = ['code'=>0,'msg'=>'评论失败!','data'=>$data,'fail'=>$succ];# | ||
| 24 | + } | ||
| 17 | return $this->fetch(); | 25 | return $this->fetch(); |
| 18 | } | 26 | } |
| 19 | 27 |
| @@ -192,7 +192,8 @@ class UpFiles extends Common | @@ -192,7 +192,8 @@ class UpFiles extends Common | ||
| 192 | $backUrl = "http://nosqn.colorcun.com"; //返回图片在七牛的路径 | 192 | $backUrl = "http://nosqn.colorcun.com"; //返回图片在七牛的路径 |
| 193 | //压缩处理 | 193 | //压缩处理 |
| 194 | $image = new Compression($imgPath); | 194 | $image = new Compression($imgPath); |
| 195 | - #$imgPath = $image->getThumb(); | 195 | + $imgPathThumb = $image->getThumb(); |
| 196 | + $uploadMgr->putFile($token,$key.'lim'.$ext,$imgPathThumb); | ||
| 196 | list($ret, $err) = $uploadMgr->putFile($token,$key,$imgPath); | 197 | list($ret, $err) = $uploadMgr->putFile($token,$key,$imgPath); |
| 197 | $rs['url'] = $backUrl."/".$key; | 198 | $rs['url'] = $backUrl."/".$key; |
| 198 | } | 199 | } |
-
Please register or login to post a comment