refactor(PayNotifyLogic): 修改支付通知逻辑,增加对订单来源的判断

This commit is contained in:
mkm 2024-07-20 21:36:16 +08:00
parent 6f2d5d349a
commit 86a88bf71d

View File

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