|
|
@@ -39,7 +39,6 @@ class notifyConsumer implements ConsumerInterface
|
|
|
return ConsumerInterface::MSG_REJECT;
|
|
|
}
|
|
|
print_r($data);
|
|
|
- Yii::$app->db->open();//处理消息前确保连接可用
|
|
|
// 根据通知类型分发处理
|
|
|
$type = $data['type'] ?? null;
|
|
|
switch ($type) {
|
|
|
@@ -59,7 +58,6 @@ class notifyConsumer implements ConsumerInterface
|
|
|
noticeUtil::push("通知的消费者提示:Unknown notify type: {$type}", '15280215347');
|
|
|
$result = false;
|
|
|
}
|
|
|
- Yii::$app->db->close(); // 处理完后关闭连接
|
|
|
if ($result) {
|
|
|
return ConsumerInterface::MSG_ACK;
|
|
|
} else {
|