|
|
|
@ -59,7 +59,8 @@ public class TestDingTalk {
|
|
|
|
|
return rsp.getBody();
|
|
|
|
|
} else {
|
|
|
|
|
String str = Redis.use().get(KEY);
|
|
|
|
|
return str;
|
|
|
|
|
JSONObject jo = JSONObject.parseObject(str);
|
|
|
|
|
return jo.getString("access_token");
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -81,7 +82,8 @@ public class TestDingTalk {
|
|
|
|
|
return rsp.getBody();
|
|
|
|
|
} else {
|
|
|
|
|
String str = Redis.use().get(KEY);
|
|
|
|
|
return str;
|
|
|
|
|
JSONObject jo = JSONObject.parseObject(str);
|
|
|
|
|
return jo.getString("access_token");
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|