refactor(PayNotifyLogic): 移除支付类型为9的订单处理逻辑

This commit is contained in:
mkm 2024-06-18 10:16:02 +08:00
parent 17504629c2
commit 1c6cb9b1a5

View File

@ -155,11 +155,11 @@ class PayNotifyLogic extends BaseLogic
}
if ($order->pay_type == 9) {
$extra['create_time'] = $order['create_time'];
// if ($order->pay_type == 9) {
// $extra['create_time'] = $order['create_time'];
// PushService::push('store_merchant_' . $order['store_id'], $order['store_id'], ['type' => 'cash_register', 'msg' => '您有一笔订单已支付', 'data' => $extra]);
Redis::send('push-platform-print', ['id' => $order['id']]);
}
// Redis::send('push-platform-print', ['id' => $order['id']]);
// }
// else {
// PushService::push('store_merchant_' . $order['store_id'], $order['store_id'], ['type' => 'store_merchant', 'msg' => '您有一笔新的订单']);
// Db::name('order_middle')->insert(['c_order_id' => $order['id']]);
@ -251,7 +251,7 @@ class PayNotifyLogic extends BaseLogic
}
$cashFlowLogic = new CashFlowLogic();
$cashFlowLogic->insert($order['store_id'], $order['pay_price']);
Redis::send('push-platform-print', ['id' => $order['id']]);
// Redis::send('push-platform-print', ['id' => $order['id']]);
}
/**
@ -282,11 +282,11 @@ class PayNotifyLogic extends BaseLogic
self::afterPay($order);
}
if ($order->pay_type == 9) {
$extra['create_time'] = $order['create_time'];
// if ($order->pay_type == 9) {
// $extra['create_time'] = $order['create_time'];
// PushService::push('store_merchant_' . $order['store_id'], $order['store_id'], ['type' => 'cash_register', 'msg' => '您有一笔订单已支付', 'data' => $extra]);
Redis::send('push-platform-print', ['id' => $order['id']]);
}
// Redis::send('push-platform-print', ['id' => $order['id']]);
// }
// else {
// PushService::push('store_merchant_' . $order['store_id'], $order['store_id'], ['type' => 'store_merchant', 'msg' => '您有一笔新的订单']);
// }