generated from dxfeng/secondev-chapanda-feishu
MODIFY-千里聆错误信息提示优化
This commit is contained in:
parent
65e6736b8c
commit
13573148de
|
|
@ -100,12 +100,18 @@ public class PositionSdkInstance {
|
|||
* @return
|
||||
*/
|
||||
public static boolean enableSdkClient() {
|
||||
ERPAResumeSDKClient client = ERPASDKClients.getResumeSDKClient();
|
||||
if (client == null || !client.available()) {
|
||||
new BaseBean().writeLog("checkAvailable failed!client=" + JSON.toJSONString(client));
|
||||
BaseBean baseBean = new BaseBean();
|
||||
try {
|
||||
ERPAResumeSDKClient client = ERPASDKClients.getResumeSDKClient();
|
||||
if (client == null || !client.available()) {
|
||||
baseBean.writeLog("checkAvailable failed!client=" + JSON.toJSONString(client));
|
||||
return false;
|
||||
} else {
|
||||
return true;
|
||||
}
|
||||
} catch (Exception e) {
|
||||
baseBean.writeLog("checkAvailable failed!", e);
|
||||
return false;
|
||||
} else {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -7,6 +7,7 @@ import com.engine.core.exception.ECException;
|
|||
import com.engine.recruit.exception.CustomizeRunTimeException;
|
||||
import com.fasterxml.jackson.core.JsonProcessingException;
|
||||
import com.fasterxml.jackson.databind.ObjectMapper;
|
||||
import com.weaver.rpa.sdk.exception.RpaSdkException;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import weaver.general.BaseBean;
|
||||
import weaver.hrm.User;
|
||||
|
|
@ -68,7 +69,7 @@ public class ResponseResult<T, R> {
|
|||
log.info("run api , param {}", t);
|
||||
}
|
||||
return Ok(f.apply(t));
|
||||
} catch (CustomizeRunTimeException e) {
|
||||
} catch (CustomizeRunTimeException | RpaSdkException e) {
|
||||
log.error("api run fail", e);
|
||||
return Error(e.getMessage());
|
||||
} catch (ECException e) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue