Commit 69ea4b3fcbbace1731aa7507a98be050b97a1727

Authored by pengye
1 parent 847c5044

no message

@@ -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 }