|
|
@@ -52,7 +52,11 @@ public class GetWeChatOpenIdManager extends AbstractManager { |
|
|
|
res = JsonTools.json2Object(string, AtsGetWeChatOpenIdResponse.class); |
|
|
|
} catch (IOException e) { |
|
|
|
logger.error("微信登录获取openId异常:{}", e.toString()); |
|
|
|
throw GlyServiceError.SYSTEM_ERROR.toHandleException(e.getMessage()); |
|
|
|
throw GlyServiceError.BUSINESS_VALIDATE_ERR.toHandleException(e.getMessage()); |
|
|
|
} |
|
|
|
if (hasText(res.getErrCode())) { |
|
|
|
logger.error("微信登录获取openId正常响应异常:code{},msg{}",res.getErrCode(), res.getErrMsg()); |
|
|
|
throw GlyServiceError.BUSINESS_VALIDATE_ERR.toHandleException(res.getErrMsg()); |
|
|
|
} |
|
|
|
return res; |
|
|
|
} |