从新加载

Signed-off-by: 赵新乐 <zxl78585@126.com>
This commit is contained in:
zxl78585 committed 2026-05-08 12:32:13 +08:00
1 parent dd1b75fb71
commit b42e43603c
1 file changed
+3 -1
@@ -29,7 +29,9 @@ public class WeComSdkClient {
public void init() { public void init() {
System.setProperty("java.library.path", libPath); System.setProperty("java.library.path", libPath);
for (File file : Objects.requireNonNull(new File(libPath).listFiles())) { for (File file : Objects.requireNonNull(new File(libPath).listFiles())) {
System.load(file.getAbsolutePath()); String filePath = file.getAbsolutePath();
System.load(filePath);
log.info("加载文件成功:{}", filePath);
} }
System.loadLibrary("WeWorkFinanceSdk"); System.loadLibrary("WeWorkFinanceSdk");
sdk = Finance.NewSdk(); sdk = Finance.NewSdk();