From 84d1db0005eb9567810e1229636357d2a994d944 Mon Sep 17 00:00:00 2001
From: xiangpei <xiangpei@timesnew.cn>
Date: 星期一, 02 九月 2024 10:34:48 +0800
Subject: [PATCH] 报备功能优化
---
ycl-server/src/main/java/com/ycl/api/YS/YSInit.java | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/ycl-server/src/main/java/com/ycl/api/YS/YSInit.java b/ycl-server/src/main/java/com/ycl/api/YS/YSInit.java
index 7bb5de6..22fc161 100644
--- a/ycl-server/src/main/java/com/ycl/api/YS/YSInit.java
+++ b/ycl-server/src/main/java/com/ycl/api/YS/YSInit.java
@@ -18,11 +18,12 @@
@Value("${spring.profiles.active}")
private String activeEnv;
- public static NetDEVSDKLib netdevsdk = NetDEVSDKLib.NETDEVSDK_INSTANCE;
+ public static NetDEVSDKLib netdevsdk;
public static String strPicturePath = "."+File.separator+"Picture"+File.separator;
@PostConstruct
void init() {
if("prod".equals(activeEnv)) {
+ netdevsdk = NetDEVSDKLib.NETDEVSDK_INSTANCE;
String strLogPath = "./sdklog/";
boolean bRet = netdevsdk.NETDEV_SetLogPath(strLogPath);
if(false == bRet){
--
Gitblit v1.8.0