优化审核列表乱跳

master
chenzhi 5 years ago
parent 261e63b898
commit 994ee29b1d

@ -397,8 +397,8 @@ class CompanyGameRatioController extends AdminController
} }
$id = M("company_game_ratio_log","tab_")->add($save); $id = M("company_game_ratio_log","tab_")->add($save);
addOperationLog(['op_type'=>0,'key'=>$id,'op_name'=>'新增','url'=>U('index')]); addOperationLog(['op_type'=>0,'key'=>$id,'op_name'=>'新增','url'=>U('lists')]);
$this->ajaxReturn(["msg"=>"添加成功","code"=>1,"url"=>U("index")]); $this->ajaxReturn(["msg"=>"添加成功","code"=>1,"url"=>U("lists")]);
} else { } else {
$companyList = D("PromoteCompany")->getList(); $companyList = D("PromoteCompany")->getList();
@ -439,8 +439,8 @@ class CompanyGameRatioController extends AdminController
$save['verify_log'] = json_encode(["create_user"=>$this->admininfo["username"],"create_time"=>date("Y-m-d H:i:s")]); $save['verify_log'] = json_encode(["create_user"=>$this->admininfo["username"],"create_time"=>date("Y-m-d H:i:s")]);
} }
M("company_game_ratio_log","tab_")->save($save); M("company_game_ratio_log","tab_")->save($save);
addOperationLog(['op_type'=>1,'key'=>$save['id'],'op_name'=>'修改','url'=>U('index')]); addOperationLog(['op_type'=>1,'key'=>$save['id'],'op_name'=>'修改','url'=>U('lists')]);
$this->ajaxReturn(["msg"=>"修改成功","code"=>1,"url"=>U("index")]); $this->ajaxReturn(["msg"=>"修改成功","code"=>1,"url"=>U("lists")]);
} else { } else {
$params = I('get.'); $params = I('get.');
$id = $params['id'] ?? 0; $id = $params['id'] ?? 0;

Loading…
Cancel
Save