后台发放-操作日志

master
chenzhi 5 years ago
parent 4cd078450c
commit 31a0a174bd

@ -5025,7 +5025,11 @@ class ExportController extends Controller
}
//操作日志
$GetData = $_GET;
unset($GetData['xlsname']);
unset($GetData['id']);
addOperationLog(['op_type'=>3,'key'=>getNowDate(),'url'=>U('PromoteCoin/send_lists',$GetData),'menu'=>'充值-平台币订单-后台发放(推广员)-导出']);
$this->exportExcel($xlsName, $xlsCell, $xlsData);

@ -183,6 +183,25 @@ class PromoteCoinController extends ThinkController
}
if ($res) {
$keyname = getPromoteAccount(I('promote_id'));
$keyname .= ("/".abs(I('num')));
$optionarr = array(
"op_type"=>1,
"key"=>$keyname,
"menu"=>"充值-平台币订单-后台发放(推广员)-",
"url"=>U("PromoteCoin/send_lists",array("model"=>"PromoteCoin","promote_id"=>I('promote_id')))
);
$promote_type = $_GET['promote_type'];
if($promote_type == '1'){
$optionarr['menu'] .= "给会长发放";
}elseif($promote_type == '2'){
$optionarr['menu'] .= "给部门长发放";
}elseif($promote_type == '3'){
$optionarr['menu'] .= "给组长发放";
}elseif($promote_type == '4'){
$optionarr['menu'] .= "给组员发放";
}
addOperationLog($optionarr);
$this->success('操作成功!', U($url, array('model' => $model['name'], 'type' => $tt)));
} else {
$this->error('操作失败!', U($url, array('model' => $model['name'], 'type' => $tt)));

@ -62,7 +62,7 @@
<div class="tab-wrap">
<div class="tab-content tabcon1711 tabcon17112">
<!-- 表单 -->
<form id="form" action="{:U('send?model='.$model['id'])}" method="post" class="form-horizontal">
<form id="form" action="{:U('send?model='.$model['id'],array('promote_type'=>$_GET['promote_type']))}" method="post" class="form-horizontal">
<!-- 基础文档模型 -->
<div id="tab1" class="tab-pane in tab1">
<table border="0" cellspacing="0" cellpadding="0">

Loading…
Cancel
Save