|
|
@@ -22,7 +22,7 @@ class notifyConsumer implements ConsumerInterface
|
|
|
* ConsumerInterface::MSG_REJECT - 拒绝并从队列中删除消息
|
|
|
* ConsumerInterface::MSG_REQUEUE - 拒绝并重新入队消息
|
|
|
*/
|
|
|
- public function execute(AMQPMessage $msg): string
|
|
|
+ public function execute(AMQPMessage $msg)
|
|
|
{
|
|
|
try {
|
|
|
// 反序列化消息体
|
|
|
@@ -78,7 +78,7 @@ class notifyConsumer implements ConsumerInterface
|
|
|
* @param array $data 消息数据,包含 order_id, customer_id 等
|
|
|
* @return bool 处理结果
|
|
|
*/
|
|
|
- private function handleNewOrderNotify(array $data): bool
|
|
|
+ private function handleNewOrderNotify($data)
|
|
|
{
|
|
|
// TODO: 实现新订单通知业务逻辑
|
|
|
// 调用对应的 Service 或 Class 层处理
|
|
|
@@ -92,7 +92,7 @@ class notifyConsumer implements ConsumerInterface
|
|
|
* @param array $data 消息数据,包含 customer_id 等
|
|
|
* @return bool 处理结果
|
|
|
*/
|
|
|
- private function handleNewCustomerNotify(array $data): bool
|
|
|
+ private function handleNewCustomerNotify($data)
|
|
|
{
|
|
|
// TODO: 实现新客户通知业务逻辑
|
|
|
// 调用对应的 Service 或 Class 层处理
|
|
|
@@ -106,7 +106,7 @@ class notifyConsumer implements ConsumerInterface
|
|
|
* @param array $data 消息数据,包含 customer_id, amount, recharge_no 等
|
|
|
* @return bool 处理结果
|
|
|
*/
|
|
|
- private function handleCustomerRechargeNotify(array $data): bool
|
|
|
+ private function handleCustomerRechargeNotify($data)
|
|
|
{
|
|
|
// TODO: 实现客户充值通知业务逻辑
|
|
|
// 调用对应的 Service 或 Class 层处理
|
|
|
@@ -120,7 +120,7 @@ class notifyConsumer implements ConsumerInterface
|
|
|
* @param array $data 消息数据,包含 customer_id, amount, writeoff_no 等
|
|
|
* @return bool 处理结果
|
|
|
*/
|
|
|
- private function handleCustomerWriteoffNotify(array $data): bool
|
|
|
+ private function handleCustomerWriteoffNotify($data)
|
|
|
{
|
|
|
// TODO: 实现客户销账通知业务逻辑
|
|
|
// 调用对应的 Service 或 Class 层处理
|
|
|
@@ -134,7 +134,7 @@ class notifyConsumer implements ConsumerInterface
|
|
|
* @param array $data 消息数据,包含 order_id, status, status_desc 等
|
|
|
* @return bool 处理结果
|
|
|
*/
|
|
|
- private function handleDeliveryStatusNotify(array $data): bool
|
|
|
+ private function handleDeliveryStatusNotify($data)
|
|
|
{
|
|
|
// TODO: 实现配送状态变更通知业务逻辑
|
|
|
// 调用对应的 Service 或 Class 层处理
|