Merge remote-tracking branch 'origin/main'
# Conflicts: # app/common/logic/PayNotifyLogic.php
This commit is contained in:
commit
3f36c2c93c
@ -29,8 +29,8 @@ class PayNotifyLogic extends BaseLogic
|
||||
|
||||
public static function handle($action, $orderSn, $extra = [])
|
||||
{
|
||||
Db::startTrans();
|
||||
try {
|
||||
// Db::startTrans();
|
||||
// try {
|
||||
if ($action != 'cash_pay' && $action != 'balancePay') {
|
||||
$payNotifyLogLogic = new PayNotifyLogLogic();
|
||||
if ($action == 'refund') {
|
||||
@ -40,13 +40,13 @@ class PayNotifyLogic extends BaseLogic
|
||||
}
|
||||
}
|
||||
self::$action($orderSn, $extra);
|
||||
Db::commit();
|
||||
// Db::commit();
|
||||
return true;
|
||||
} catch (\Exception $e) {
|
||||
Db::rollback();
|
||||
Log::error('支付回调处理失败' . $e->getMessage() . ',lien:' . $e->getLine() . ',file:' . $e->getFile());
|
||||
throw new \Exception($e->getMessage());
|
||||
}
|
||||
// } catch (\Exception $e) {
|
||||
// Db::rollback();
|
||||
// Log::error('支付回调处理失败' . $e->getMessage() . ',lien:' . $e->getLine() . ',file:' . $e->getFile());
|
||||
// throw new \Exception($e->getMessage());
|
||||
// }
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user