钉钉后台就接收扫二维码登陆code值,一直显示不存在的临时授权码

public static JSONObject getPersistentCode(String tmp_auth_code, String accessToken) {

    String url = Env.OAPI_HOST + "/sns/get_persistent_code?access_token=" + accessToken;
    JSONObject json = new JSONObject();
    json.put("tmp_auth_code", tmp_auth_code);
    JSONObject reponseJson = null;
    try {
        reponseJson = HttpHelper.httpPost(url, json);
    } catch (OApiException e) {
        e.printStackTrace();
    }
    return reponseJson;
}
阅读 3.7k
推荐问题