|
|
@@ -108,4 +108,23 @@ public class LoginServiceImpl implements LoginService {
|
|
|
throw new CustomException("退出登录失败: " + errorMsg);
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public ApiResponseCommon<Void> wakeUpLogin(String authKey, QrCodeRequest request) {
|
|
|
+ String url = BASE_URL + "/login/WakeUpLogin?key=" + authKey;
|
|
|
+ ApiResponseCommon<Void> response = WxWorkHttpUtil.postWithType(
|
|
|
+ url,
|
|
|
+ request,
|
|
|
+ new TypeReference<ApiResponseCommon<Void>>() {}
|
|
|
+ );
|
|
|
+ String text = response.getText();
|
|
|
+ int code = response.getCode();
|
|
|
+ if (code == 200) {
|
|
|
+ return response;
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ String errorMsg = text != null ? text : "唤醒登录失败,未知错误";
|
|
|
+ throw new CustomException("唤醒登录失败: " + errorMsg);
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|