feat(PayNotifyLogic): Adjusted reservation and source conditions in payment notification logic

This commit is contained in:
mkm 2024-07-20 21:34:50 +08:00
parent 10fcdd0749
commit 19e9a6c2bb

View File

@ -106,7 +106,7 @@ class PayNotifyLogic extends BaseLogic
]; ];
self::dealGoodsLeft($checkArr, $order['uid'], $order['id']); self::dealGoodsLeft($checkArr, $order['uid'], $order['id']);
} }
if ($order && $order['store_id'] && $order['reservation'] !=1) { if ($order && $order['store_id'] && $order['reservation'] !=1 && $order['source']==1) {
$params = [ $params = [
'verify_code' => $order['verify_code'], 'verify_code' => $order['verify_code'],
'store_id' => $order['store_id'], 'store_id' => $order['store_id'],
@ -211,7 +211,7 @@ class PayNotifyLogic extends BaseLogic
// } // }
// self::addUserSing($order); // self::addUserSing($order);
self::afterPay($order); self::afterPay($order);
if ($order && $order['store_id'] && $order['reservation'] !=1) { if ($order && $order['store_id'] && $order['reservation'] !=1 && $order['source']==1) {
$params = [ $params = [
'verify_code' => $order['verify_code'], 'verify_code' => $order['verify_code'],
'store_id' => $order['store_id'], 'store_id' => $order['store_id'],