Commit 256a2215d3c9d0b99957158944ee63e1b4a0eec2

Authored by pengye
1 parent 7473ce5e

no message

... ... @@ -21,6 +21,23 @@ class Comment extends Common
return $this->fetch();
}
public function addcommit(){
if(Request::isAjax()){
echo 1;die;
$data = Request::except('file');
$key= input('post.key') ? input('post.key') : "";
$limit = '&agent_name='.@$key['id'];
//获取运营人员列表
$list= file_get_contents(ON_LINE.'App.Agent.GetAgentList'.$limit);
$array = json_decode($list,TRUE);
return $result = ['code'=>0,'msg'=>'获取成功!','data'=>$array['data'],'rel'=>1];#'count'=>$array['data'][0]['total']
}
return $this->fetch();
}
/**
* 商家list
... ...
... ... @@ -133,11 +133,11 @@
//校验
var loading = layer.load(1, {shade: [0.1, '#fff']});
$.post("{:url('sellerconfig')}", data.field, function (res) {
$.post("{:url('addcommit')}", data.field, function (res) {
layer.close(loading);
if (res.code == 1) {
layer.msg(res.msg, {time: 1000, icon: 1}, function () {
location.href = "{:url('sellerList')}";
location.href = "{:url('CommentList')}";
});
} else {
layer.msg(res.msg, {time: 1000, icon: 2});
... ...