Showing
2 changed files
with
19 additions
and
2 deletions
| @@ -21,6 +21,23 @@ class Comment extends Common | @@ -21,6 +21,23 @@ class Comment extends Common | ||
| 21 | 21 | ||
| 22 | return $this->fetch(); | 22 | return $this->fetch(); |
| 23 | } | 23 | } |
| 24 | + | ||
| 25 | + | ||
| 26 | + public function addcommit(){ | ||
| 27 | + if(Request::isAjax()){ | ||
| 28 | + echo 1;die; | ||
| 29 | + $data = Request::except('file'); | ||
| 30 | + $key= input('post.key') ? input('post.key') : ""; | ||
| 31 | + | ||
| 32 | + $limit = '&agent_name='.@$key['id']; | ||
| 33 | + | ||
| 34 | + //获取运营人员列表 | ||
| 35 | + $list= file_get_contents(ON_LINE.'App.Agent.GetAgentList'.$limit); | ||
| 36 | + $array = json_decode($list,TRUE); | ||
| 37 | + return $result = ['code'=>0,'msg'=>'获取成功!','data'=>$array['data'],'rel'=>1];#'count'=>$array['data'][0]['total'] | ||
| 38 | + } | ||
| 39 | + return $this->fetch(); | ||
| 40 | + } | ||
| 24 | 41 | ||
| 25 | /** | 42 | /** |
| 26 | * 商家list | 43 | * 商家list |
| @@ -133,11 +133,11 @@ | @@ -133,11 +133,11 @@ | ||
| 133 | //校验 | 133 | //校验 |
| 134 | 134 | ||
| 135 | var loading = layer.load(1, {shade: [0.1, '#fff']}); | 135 | var loading = layer.load(1, {shade: [0.1, '#fff']}); |
| 136 | - $.post("{:url('sellerconfig')}", data.field, function (res) { | 136 | + $.post("{:url('addcommit')}", data.field, function (res) { |
| 137 | layer.close(loading); | 137 | layer.close(loading); |
| 138 | if (res.code == 1) { | 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('sellerList')}"; | 140 | + location.href = "{:url('CommentList')}"; |
| 141 | }); | 141 | }); |
| 142 | } else { | 142 | } else { |
| 143 | layer.msg(res.msg, {time: 1000, icon: 2}); | 143 | layer.msg(res.msg, {time: 1000, icon: 2}); |
-
Please register or login to post a comment