amqplib-init 1.1.10 → 1.1.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.js +2 -2
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -34,8 +34,8 @@ module.exports = {
34
34
  const response = await axios.post(amqpAutoLink);
35
35
  const { info } = response.data;
36
36
 
37
- if (info && info.AMQPLIB_USER && info.AMQPLIB_PWD && info.AMQPLIB_IP && info.AMQPLIB_PORT) {
38
- finalAmqpLink = `amqp://${info.AMQPLIB_USER}:${info.AMQPLIB_PWD}@${info.AMQPLIB_IP}:${info.AMQPLIB_PORT}`;
37
+ if (info && info.AMQPLIB_USER && info.AMQPLIB_PWD && info.AMQPLIB_PUB && info.AMQPLIB_PORT) {
38
+ finalAmqpLink = `amqp://${info.AMQPLIB_USER}:${info.AMQPLIB_PWD}@${info.AMQPLIB_PUB}:${info.AMQPLIB_PORT}`;
39
39
  log.log(`✅ 自动获取连接信息成功: ${finalAmqpLink}`);
40
40
  } else {
41
41
  log.error('❌ 获取的连接信息不完整,使用默认连接地址');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "amqplib-init",
3
- "version": "1.1.10",
3
+ "version": "1.1.11",
4
4
  "description": "消息队列初始化",
5
5
  "main": "index.js",
6
6
  "scripts": {