内容纲要
        // 内部请求调用登录接口
        HashMap<String, Object> paramMap = new HashMap<>();
        paramMap.put("username", sysUserAdmin.getUsername());
        paramMap.put("password", loginPassword);
        paramMap.put("rsaEncryptKey", sysUserAdmin.getRsaEncryptKey());
        String loginPost = HttpRequest.post(loginUrl)
                .header(Header.CONTENT_TYPE, "application/json")
                .charset(StandardCharsets.UTF_8)
                .body(JSONUtil.toJsonStr(paramMap))
                .execute().body();
        JSONObject resultJson = JSONUtil.parseObj(loginPost);

        return R.ok(resultJson.get("data"),"重置密码成功");
Spread the knowledge