|
|
|
@ -67,10 +67,9 @@ class NotifyController extends BaseController |
|
|
|
|
|
|
|
var_dump('inside'); |
|
|
|
// 通知回调,进行业务处理
|
|
|
|
Db::beginTransaction(); |
|
|
|
try { |
|
|
|
$response = $app->handlePaidNotify(function ($message, $fail) use ($app) { |
|
|
|
|
|
|
|
$response = $app->handlePaidNotify(function ($message, $fail) use ($app) { |
|
|
|
Db::beginTransaction(); |
|
|
|
try { |
|
|
|
var_dump('message', $message); |
|
|
|
// 支付失败或者通知失败
|
|
|
|
if ( |
|
|
|
@ -197,20 +196,19 @@ class NotifyController extends BaseController |
|
|
|
$res = $this->feiePrintService->feiePrint($orderMain->order_num); |
|
|
|
var_dump($res); |
|
|
|
|
|
|
|
Db::commit(); |
|
|
|
return true; |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
var_dump('$response', $response); |
|
|
|
Db::rollBack(); |
|
|
|
$response->send(); |
|
|
|
} catch (Exception $e) { |
|
|
|
|
|
|
|
} catch (\EasyWeChat\Kernel\Exceptions\Exception $e) { |
|
|
|
var_dump($e->getMessage()); |
|
|
|
Db::rollBack(); |
|
|
|
$fail('Exception'); |
|
|
|
} |
|
|
|
|
|
|
|
var_dump($e->getMessage()); |
|
|
|
Db::rollBack(); |
|
|
|
}); |
|
|
|
|
|
|
|
} |
|
|
|
$response->send(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|