perf:请求时将通过getCurrentUserName()方法返回的对象检验用户是否非法
This commit is contained in:
@@ -104,7 +104,7 @@ public class PlatformDingConfig {
|
||||
* @return accessToken
|
||||
* @see <a href="https://open.dingtalk.com/document/orgapp-server/obtain-orgapp-token" />
|
||||
*/
|
||||
public String getAccessToken(String service) {
|
||||
public synchronized String getAccessToken(String service) {
|
||||
DingConfigBean dingConfigBean = getConfigBean(service);
|
||||
String accessToken = TsCacheService.of().get(CACHE_ACCESS_TOKEN + dingConfigBean.getAppKey(), -1);
|
||||
if (!StrUtil.isEmpty(accessToken)) {
|
||||
|
||||
Reference in New Issue
Block a user