充值补单

master
tping 5 years ago
parent 3244238849
commit 127be94d60

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

Loading…
Cancel
Save