From cc0bdfb33ef638dfafe3185c92c7076d815e1c9b Mon Sep 17 00:00:00 2001
From: yangys <y_ys79@sina.com>
Date: 星期六, 18 五月 2024 21:42:19 +0800
Subject: [PATCH] 代码优化
---
smart-man-boot/src/main/java/com/qianwen/smartman/modules/sync/api/QyWechatApi.java | 8 +++-----
1 files changed, 3 insertions(+), 5 deletions(-)
diff --git a/smart-man-boot/src/main/java/com/qianwen/smartman/modules/sync/api/QyWechatApi.java b/smart-man-boot/src/main/java/com/qianwen/smartman/modules/sync/api/QyWechatApi.java
index 9357418..f3d7b27 100644
--- a/smart-man-boot/src/main/java/com/qianwen/smartman/modules/sync/api/QyWechatApi.java
+++ b/smart-man-boot/src/main/java/com/qianwen/smartman/modules/sync/api/QyWechatApi.java
@@ -33,8 +33,6 @@
import com.qianwen.smartman.modules.sync.entity.QyUserTicket;
import com.qianwen.smartman.modules.sync.service.impl.OuterAppConfigServiceImpl;
-
-/* loaded from: blade-api.jar:BOOT-INF/classes/org/springblade/modules/sync/api/QyWechatApi.class */
public class QyWechatApi {
private static final Logger log = LoggerFactory.getLogger(QyWechatApi.class);
@@ -179,7 +177,7 @@
String responseData = HttpUtil.get(requestUrl);
log.info("[浼佷笟寰俊API].[list->api璋冪敤 response class={},responseData={}]", responseClass, responseData);
if (StrUtil.isEmpty(responseData)) {
- return new ArrayList();
+ return new ArrayList<>();
}
return parseResponseDataList(responseData, responseClass, responseKey);
}
@@ -245,9 +243,9 @@
throw new ServiceException(setResultCode(MessageUtils.message("sync.qy.login.invalid.code", new Object[0]), 400));
}
if (errCode.intValue() == 60020) {
- throw new ServiceException(setResultCode(MessageUtils.message("sync.qy.ip.trust", new Object[0]) + SystemPropertyUtils.VALUE_SEPARATOR + errMsg, 400));
+ throw new ServiceException(setResultCode(MessageUtils.message("sync.qy.ip.trust", new Object[0]) + ":" + errMsg, 400));
}
- throw new ServiceException(setResultCode(MessageUtils.message("sync.qy.api.error", new Object[0]) + SystemPropertyUtils.VALUE_SEPARATOR + errMsg, 400));
+ throw new ServiceException(setResultCode(MessageUtils.message("sync.qy.api.error", new Object[0]) + ":" + errMsg, 400));
}
private static IResultCode setResultCode(final String errMsg, final Integer code) {
--
Gitblit v1.9.3