Browse Source

Merge branch 'purchase_limit' of ssh://120.24.33.109:11022/hyzjshwo/lanzu_api_hyperf into purchase_limit

master
liangyuyan 5 years ago
parent
commit
4adbb63c83
  1. 10
      app/Controller/NotifyController.php

10
app/Controller/NotifyController.php

@ -115,7 +115,7 @@ class NotifyController extends BaseController
$message $message
); );
Db::rollBack(); Db::rollBack();
$fail('Unknown error but FAIL');
return $fail('Unknown error but FAIL');
} }
// 查询订单 // 查询订单
@ -127,7 +127,7 @@ class NotifyController extends BaseController
->first(); ->first();
// 订单不存在 // 订单不存在
if (empty($orderMain)) {
if (empty($orderMain) || $orderMain->state == OrderMain::ORDER_STATE_DELIVERY) {
$this->log->event( $this->log->event(
LogLabel::PAY_NOTIFY_WXMINI, LogLabel::PAY_NOTIFY_WXMINI,
['global_order_id_fail' => $message['out_trade_no']] ['global_order_id_fail' => $message['out_trade_no']]
@ -222,7 +222,7 @@ class NotifyController extends BaseController
['exception_fail' => $e->getMessage()] ['exception_fail' => $e->getMessage()]
); );
Db::rollBack(); Db::rollBack();
$fail('Exception');
return $fail('Exception');
} }
}); });
@ -267,7 +267,7 @@ class NotifyController extends BaseController
$message $message
); );
Db::rollBack(); Db::rollBack();
$fail('Unknown error but FAIL');
return $fail('Unknown error but FAIL');
} }
// 查询订单 // 查询订单
@ -397,7 +397,7 @@ class NotifyController extends BaseController
['exception_fail' => $e->getMessage()] ['exception_fail' => $e->getMessage()]
); );
Db::rollBack(); Db::rollBack();
$fail('Exception');
return $fail('Exception');
} }
}); });

Loading…
Cancel
Save