|
|
@ -41,7 +41,7 @@ public class CustomerApplicationRunner implements ApplicationRunner { |
|
|
|
//发送启动成功消息
|
|
|
|
EnvEnum currentEnv = EnvEnum.getCurrentEnv(); |
|
|
|
logger.info(currentEnv); |
|
|
|
if (!EnvEnum.DEV.getCode().equals(currentEnv.getCode())) { |
|
|
|
if (!EnvEnum.DEV.getCode().equals(currentEnv.getCode()) && !EnvEnum.LOCAL.getCode().equals(currentEnv.getCode())) { |
|
|
|
InetUtils inetUtils = SpringContextUtils.getBean(InetUtils.class); |
|
|
|
String serverIp = inetUtils.findFirstNonLoopbackHostInfo().getIpAddress(); |
|
|
|
|
|
|
|