Commit 9d4f8a2c8a44549cb7f342b8b4cbe64bea94c87f

Authored by pengye
1 parent 3e434bb7

no message

@@ -36,6 +36,7 @@ class Comment extends Common @@ -36,6 +36,7 @@ class Comment extends Common
36 public function agent(){ 36 public function agent(){
37 if(Request::isAjax()){ 37 if(Request::isAjax()){
38 $data = Request::except('file'); 38 $data = Request::except('file');
  39 + return $data;
39 $key= input('post.key') ? input('post.key') : ""; 40 $key= input('post.key') ? input('post.key') : "";
40 41
41 $limit = '&agent_name='.@$key['id']; 42 $limit = '&agent_name='.@$key['id'];
@@ -134,15 +134,15 @@ @@ -134,15 +134,15 @@
134 var loading = layer.load(1, {shade: [0.1, '#fff']}); 134 var loading = layer.load(1, {shade: [0.1, '#fff']});
135 $.post("{:url('Comment/addcommit')}", data.field, function (res) { 135 $.post("{:url('Comment/addcommit')}", data.field, function (res) {
136 layer.close(loading); 136 layer.close(loading);
137 - alert(res.code);  
138 - if (res.code == 1) { 137 + alert(res);
  138 + /*if (res.code == 1) {
139 layer.msg(res.msg, {time: 1000, icon: 1}, function () { 139 layer.msg(res.msg, {time: 1000, icon: 1}, function () {
140 location.href = "{:url('CommentList')}"; 140 location.href = "{:url('CommentList')}";
141 }); 141 });
142 } else { 142 } else {
143 alert(res.msg); 143 alert(res.msg);
144 layer.msg(res.msg, {time: 1000, icon: 2}); 144 layer.msg(res.msg, {time: 1000, icon: 2});
145 - } 145 + }*/
146 }); 146 });
147 }) 147 })
148 }); 148 });