Showing
1 changed file
with
2 additions
and
2 deletions
| @@ -25,7 +25,7 @@ class Comment extends Common | @@ -25,7 +25,7 @@ class Comment extends Common | ||
| 25 | 25 | ||
| 26 | public function addcommit(){ | 26 | public function addcommit(){ |
| 27 | if(Request::isAjax()){ | 27 | if(Request::isAjax()){ |
| 28 | - echo 1;die; | 28 | + return $result = ['code'=>1,'msg'=>'评论成功!','data'=>$array['data'],'rel'=>1];# |
| 29 | $data = Request::except('file'); | 29 | $data = Request::except('file'); |
| 30 | $key= input('post.key') ? input('post.key') : ""; | 30 | $key= input('post.key') ? input('post.key') : ""; |
| 31 | 31 | ||
| @@ -34,7 +34,7 @@ class Comment extends Common | @@ -34,7 +34,7 @@ class Comment extends Common | ||
| 34 | //获取运营人员列表 | 34 | //获取运营人员列表 |
| 35 | $list= file_get_contents(ON_LINE.'App.Agent.GetAgentList'.$limit); | 35 | $list= file_get_contents(ON_LINE.'App.Agent.GetAgentList'.$limit); |
| 36 | $array = json_decode($list,TRUE); | 36 | $array = json_decode($list,TRUE); |
| 37 | - return $result = ['code'=>0,'msg'=>'获取成功!','data'=>$array['data'],'rel'=>1];#'count'=>$array['data'][0]['total'] | 37 | + 'count'=>$array['data'][0]['total'] |
| 38 | } | 38 | } |
| 39 | return $this->fetch(); | 39 | return $this->fetch(); |
| 40 | } | 40 | } |
-
Please register or login to post a comment