🎨 新增 MQ 开关
This commit is contained in:
@@ -16,6 +16,10 @@ const exchangeName = "wechat-message"
|
||||
// Init
|
||||
// @description: 初始化MQ
|
||||
func Init() {
|
||||
if !config.Conf.Mq.Enable {
|
||||
log.Println("未启用MQ")
|
||||
return
|
||||
}
|
||||
// 读取MQ连接配置
|
||||
mqUrl := config.Conf.Mq.RabbitMQ.GetURL()
|
||||
if mqUrl == "" {
|
||||
|
||||
Reference in New Issue
Block a user