diff --git a/Application/Admin/Controller/ExportController.class.php b/Application/Admin/Controller/ExportController.class.php index 9f7b6a2ff..3e89288d3 100644 --- a/Application/Admin/Controller/ExportController.class.php +++ b/Application/Admin/Controller/ExportController.class.php @@ -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); diff --git a/Application/Admin/Controller/PromoteCoinController.class.php b/Application/Admin/Controller/PromoteCoinController.class.php index 6fddbcbef..af7f5b365 100644 --- a/Application/Admin/Controller/PromoteCoinController.class.php +++ b/Application/Admin/Controller/PromoteCoinController.class.php @@ -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))); diff --git a/Application/Admin/View/PromoteCoin/send.html b/Application/Admin/View/PromoteCoin/send.html index 8f37f009f..154e4691e 100644 --- a/Application/Admin/View/PromoteCoin/send.html +++ b/Application/Admin/View/PromoteCoin/send.html @@ -62,7 +62,7 @@