Browse Source

第三医院集成平台检查检验接口对接

wangzhinan 1 year ago
parent
commit
a15bd81e31

+ 1 - 2
server/svr-authentication/src/main/java/com/yihu/jw/security/oauth2/provider/endpoint/WlyyLoginEndpoint.java

@ -391,11 +391,10 @@ public class WlyyLoginEndpoint extends AbstractEndpoint {
            }
        } else if ("wxApplets".equals(flag)) {
            KeyPair keyPair = (KeyPair) httpSession.getAttribute("privateKey");
            String password = com.yihu.jw.security.utils.RSAUtils.decryptBase64(parameters.get("password"), keyPair);
            String mobile = com.yihu.jw.security.utils.RSAUtils.decryptBase64(parameters.get("mobile"), keyPair);
            //微信小程序登录
            parameters.put("grant_type", "wxApplets");
            String authCode = parameters.get("authCode");
            String mobile = parameters.get("mobile");
            String userPhone = "";
            if (org.apache.commons.lang3.StringUtils.isNoneBlank(authCode)){
                userPhone = wechatService.getUserPhoneByApplets(authCode);