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'=>'补单失败,请重试']);