Merge pull request 'feat: 添加或删除一个新的特性(API);' (#43) from dev into main
Reviewed-on: #43
This commit is contained in:
commit
6aa46b3a3d
File diff suppressed because it is too large
Load Diff
@ -475,7 +475,7 @@ class PayNotifyLogic extends BaseLogic
|
||||
/**
|
||||
* 现金支付
|
||||
*/
|
||||
public static function cash_pay($orderSn,$extra =[])
|
||||
public static function cash_pay($orderSn)
|
||||
{
|
||||
$order = StoreOrder::where('order_id', $orderSn)->findOrEmpty();
|
||||
|
||||
@ -503,11 +503,11 @@ class PayNotifyLogic extends BaseLogic
|
||||
self::descStock($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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user