feat: 修改支付通知逻辑,移除Redis消息的过期时间

This commit is contained in:
mkm 2024-06-13 09:51:36 +08:00
parent cf0520f1e6
commit 0451dea858

View File

@ -127,7 +127,7 @@ class PayNotifyLogic extends BaseLogic
PushService::push('store_merchant_' . $order['store_id'], $order['store_id'], ['type' => 'store_merchant', 'msg' => '您有一笔新的订单']);
// Db::name('order_middle')->insert(['c_order_id' => $order['id']]);
}
Redis::send('push-platform-print', ['id' => $order['id']], 60);
Redis::send('push-platform-print', ['id' => $order['id']]);
if (!empty($extra['payer']['openid']) && $order->pay_type == 7) {
Redis::send('push-delivery', ['order_id' => $order['order_id'], 'openid' => $extra['payer']['openid']], 5);
}
@ -206,6 +206,7 @@ class PayNotifyLogic extends BaseLogic
}
$cashFlowLogic = new CashFlowLogic();
$cashFlowLogic->insert($order['store_id'], $order['pay_price']);
Redis::send('push-platform-print', ['id' => $order['id']]);
}
/**
@ -242,7 +243,7 @@ class PayNotifyLogic extends BaseLogic
} else {
PushService::push('store_merchant_' . $order['store_id'], $order['store_id'], ['type' => 'store_merchant', 'msg' => '您有一笔新的订单']);
}
Redis::send('push-platform-print', ['id' => $order['id']], 60);
Redis::send('push-platform-print', ['id' => $order['id']]);
return true;
}