From 127be94d607d8a3693bb9adffd3c439d7100373b Mon Sep 17 00:00:00 2001 From: tping Date: Tue, 24 Dec 2019 18:11:02 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=85=E5=80=BC=E8=A1=A5=E5=8D=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Application/Admin/Controller/RepairController.class.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Application/Admin/Controller/RepairController.class.php b/Application/Admin/Controller/RepairController.class.php index 05de1242c..cd2823ffd 100644 --- a/Application/Admin/Controller/RepairController.class.php +++ b/Application/Admin/Controller/RepairController.class.php @@ -155,9 +155,9 @@ class RepairController extends ThinkController { $spend = M($tab, "tab_"); if($result == "success"){ $rr = $spend->where(array('pay_order_number'=>$orderNo))->save(array('pay_game_status'=>1)); - if ($rr) { + if ($rr !== false) { $cpFlag = 1; - M('spend', 'tab_')->commit(); + M($tab, 'tab_')->commit(); } else { M($tab, 'tab_')->rollback(); $this->ajaxReturn(array('status'=>1,'msg'=>'补单失败.')); @@ -207,7 +207,7 @@ class RepairController extends ThinkController { if ($tab == 'spend' && $cpFlag == 0) { $this->ajaxReturn(['status'=>0,'msg'=>'充值补单成功,通知CP失败!']); } - $this->ajaxReturn(['status'=>0,'msg'=>'充值补单成功!']); + $this->ajaxReturn(['status'=>1,'msg'=>'充值补单成功!']); } else { M('spend', 'tab_')->rollback(); $this->ajaxReturn(['status'=>0,'msg'=>'补单失败,请重试']);