| | |
| | | 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); |
| | | |
| | |
| | | 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); |
| | | } |
| | |
| | | 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) { |