Merge remote-tracking branch 'origin/main'

# Conflicts:
#	app/common/logic/PayNotifyLogic.php
This commit is contained in:
liu 2024-06-11 11:12:54 +08:00
commit 3f36c2c93c

View File

@ -29,8 +29,8 @@ class PayNotifyLogic extends BaseLogic
public static function handle($action, $orderSn, $extra = []) public static function handle($action, $orderSn, $extra = [])
{ {
Db::startTrans(); // Db::startTrans();
try { // try {
if ($action != 'cash_pay' && $action != 'balancePay') { if ($action != 'cash_pay' && $action != 'balancePay') {
$payNotifyLogLogic = new PayNotifyLogLogic(); $payNotifyLogLogic = new PayNotifyLogLogic();
if ($action == 'refund') { if ($action == 'refund') {
@ -40,13 +40,13 @@ class PayNotifyLogic extends BaseLogic
} }
} }
self::$action($orderSn, $extra); self::$action($orderSn, $extra);
Db::commit(); // Db::commit();
return true; return true;
} catch (\Exception $e) { // } catch (\Exception $e) {
Db::rollback(); // Db::rollback();
Log::error('支付回调处理失败' . $e->getMessage() . ',lien:' . $e->getLine() . ',file:' . $e->getFile()); // Log::error('支付回调处理失败' . $e->getMessage() . ',lien:' . $e->getLine() . ',file:' . $e->getFile());
throw new \Exception($e->getMessage()); // throw new \Exception($e->getMessage());
} // }
} }
/** /**