diff --git a/app/common/logic/PayNotifyLogic.php b/app/common/logic/PayNotifyLogic.php index bafe12c9..8a3fe80e 100644 --- a/app/common/logic/PayNotifyLogic.php +++ b/app/common/logic/PayNotifyLogic.php @@ -106,11 +106,11 @@ class PayNotifyLogic extends BaseLogic ]; self::dealGoodsLeft($checkArr, $order['uid'], $order['id']); } - if ($extra && $extra['store_id'] && $order['reservation'] !=1) { + if ($order && $order['store_id'] && $order['reservation'] !=1) { $params = [ 'verify_code' => $order['verify_code'], - 'store_id' => $extra['store_id'], - 'staff_id' => $extra['staff_id'] + 'store_id' => $order['store_id'], + 'staff_id' => $order['staff_id'] ]; OrderLogic::writeOff($params); } @@ -162,11 +162,11 @@ class PayNotifyLogic extends BaseLogic ]; UserSign::create($sing); - if ($extra && $extra['store_id']) { + if ($order && $order['store_id']) { $params = [ 'verify_code' => $order['verify_code'], - 'store_id' => $extra['store_id'], - 'staff_id' => $extra['staff_id'] + 'store_id' => $order['store_id'], + 'staff_id' => $order['staff_id'] ]; OrderLogic::lessWriteOff($params); } @@ -211,11 +211,11 @@ class PayNotifyLogic extends BaseLogic // } // self::addUserSing($order); self::afterPay($order); - if ($extra && $extra['store_id'] && $order['reservation'] !=1) { + if ($order && $order['store_id'] && $order['reservation'] !=1) { $params = [ 'verify_code' => $order['verify_code'], - 'store_id' => $extra['store_id'], - 'staff_id' => $extra['staff_id'] + 'store_id' => $order['store_id'], + 'staff_id' => $order['staff_id'] ]; OrderLogic::writeOff($params); }