|
@ -783,18 +783,18 @@ public class WlyyLoginEndpoint extends AbstractEndpoint {
|
|
|
}
|
|
|
|
|
|
JSONObject rs = oauthCaConfigSerivce.getQueryQRCode(qrcode);
|
|
|
String code = rs.getString("code");
|
|
|
JSONObject data = rs.getJSONObject("data");
|
|
|
String qrCodeStatus = data.getString("qrCodeStatus");
|
|
|
if(!"1000".equals(code)&&!"LoginQrCodeBeenScan".equals(qrCodeStatus)){
|
|
|
if(!"LoginQrCodeBeenScan".equals(qrCodeStatus)){
|
|
|
return ObjEnvelop.getSuccess("error",rs);
|
|
|
}
|
|
|
|
|
|
ClientDetails authenticatedClient = clientDetailsService.loadClientByClientId(client_id);
|
|
|
Map<String, String> parameters = new HashedMap();
|
|
|
|
|
|
Map<String, String> parameters = new HashedMap();
|
|
|
parameters.put("username",data.getString("userIdCardNum"));
|
|
|
parameters.put("grant_type", "ihealthCode");
|
|
|
parameters.put("login_type","2");
|
|
|
parameters.put("grant_type", "ihealthDcotor");
|
|
|
|
|
|
TokenRequest tokenRequest = oAuth2RequestFactory.createTokenRequest(parameters, authenticatedClient);
|
|
|
if (authenticatedClient != null) {
|
|
@ -822,7 +822,6 @@ public class WlyyLoginEndpoint extends AbstractEndpoint {
|
|
|
baseLoginLogDO.setLoginType(login_type);
|
|
|
baseLoginLogService.save(baseLoginLogDO);
|
|
|
rs.put("WlyyUserSimple",wlyyUserSimple);
|
|
|
rs.remove("data");
|
|
|
return ObjEnvelop.getSuccess("success",rs);
|
|
|
}
|
|
|
|