diff --git a/Application/Admin/Controller/DeductBindRecordController.class.php b/Application/Admin/Controller/DeductBindRecordController.class.php index 35000b83e..68d43faa9 100644 --- a/Application/Admin/Controller/DeductBindRecordController.class.php +++ b/Application/Admin/Controller/DeductBindRecordController.class.php @@ -99,7 +99,14 @@ class DeductBindRecordController extends ThinkController { $result = M('UserPlay','tab_')->where($user_play_map)->setDec('bind_balance',$data["quantity"]); $result1 = $deduct->data($data)->add(); if($result !== false && $result1 !==false){ - M()->commit();$this->success("操作成功",U('DeductBindRecord/recordLists')); + M()->commit(); + //操作日志 + addOperationLog(array( + "op_type"=>1, + "key"=> $data["user_account"]."/".$data["quantity"], + "url"=>U("DeductBindRecord/recordLists",array("account"=>$data["user_account"])) + )); + $this->success("操作成功",U('DeductBindRecord/recordLists')); }else{ //事务回滚 M()->rollback(); diff --git a/Application/Admin/Controller/ExportController.class.php b/Application/Admin/Controller/ExportController.class.php index de2715dd7..aae776029 100644 --- a/Application/Admin/Controller/ExportController.class.php +++ b/Application/Admin/Controller/ExportController.class.php @@ -5227,8 +5227,8 @@ class ExportController extends Controller } - - + //操作日志 + $this->exportAddOperationLog('DeductBindRecord/recordLists','充值-绑币订单-绑币收回-导出'); $this->exportExcel($xlsName, $xlsCell, $xlsData); } @@ -8238,5 +8238,13 @@ class ExportController extends Controller excelDownStreamTemplate(); } + //导出操作日志 + public function exportAddOperationLog($url,$menu) + { + $GetData = $_GET; + unset($GetData['xlsname']); + unset($GetData['id']); + addOperationLog(['op_type'=>3,'key'=>getNowDate(),'url'=>U($url,$GetData),'menu'=>$menu]); + } }