From 6cb25fe7feb73c7416cc825ab075d7f369377b0b Mon Sep 17 00:00:00 2001 From: chenzhi Date: Thu, 27 Feb 2020 14:15:07 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B8=B8=E6=88=8F=E5=85=85=E5=80=BC-=E6=93=8D?= =?UTF-8?q?=E4=BD=9C=E6=97=A5=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Controller/ExportController.class.php | 5 +++++ .../Controller/RepairController.class.php | 20 ++++++++++++++++--- 2 files changed, 22 insertions(+), 3 deletions(-) diff --git a/Application/Admin/Controller/ExportController.class.php b/Application/Admin/Controller/ExportController.class.php index f4a9b235d..a62291e34 100644 --- a/Application/Admin/Controller/ExportController.class.php +++ b/Application/Admin/Controller/ExportController.class.php @@ -1212,6 +1212,11 @@ class ExportController extends Controller flush();//必须同时使用 ob_flush() 和flush() 函数来刷新输出缓冲。 } fclose($fp); + //操作日志 + $GetData = $_GET; + unset($GetData['xlsname']); + addOperationLog(['op_type'=>3,'key'=>getNowDate(),'url'=>U('Spend/lists',$GetData),'menu'=>'充值-游戏订单-游戏充值-导出']); + exit(); // $xlsCell = array( // array('pay_order_number', "订单号"), diff --git a/Application/Admin/Controller/RepairController.class.php b/Application/Admin/Controller/RepairController.class.php index cd2823ffd..d0093e5e3 100644 --- a/Application/Admin/Controller/RepairController.class.php +++ b/Application/Admin/Controller/RepairController.class.php @@ -33,6 +33,13 @@ class RepairController extends ThinkController { ]); $rr = $spend->where(array('pay_order_number'=>$orderNo))->save(array('pay_game_status'=>1)); + //操作日志 + addOperationLog(array( + "op_type"=>1, + "key"=> $orderNo, + "url"=>U("Spend/lists",array("pay_order_number"=>$orderNo)) + )); + $this->ajaxReturn(array('status'=>1,'msg'=>'补单成功')); }else{ $this->ajaxReturn(array('status'=>0,'msg'=>'补单失败')); @@ -204,9 +211,16 @@ class RepairController extends ThinkController { } // todo: 分红 上级奖励等 - if ($tab == 'spend' && $cpFlag == 0) { - $this->ajaxReturn(['status'=>0,'msg'=>'充值补单成功,通知CP失败!']); - } + // if ($tab == 'spend' && $cpFlag == 0) { + // $this->ajaxReturn(['status'=>0,'msg'=>'充值补单成功,通知CP失败!']); + // } + //操作日志 + addOperationLog(array( + "op_type"=>1, + "key"=> $orderNo, + "menu"=>"充值-游戏订单-游戏充值-通知到账", + "url"=>U("Spend/lists",array("pay_order_number"=>$orderNo)) + )); $this->ajaxReturn(['status'=>1,'msg'=>'充值补单成功!']); } else { M('spend', 'tab_')->rollback();