feat:getYlsToken

This commit is contained in:
苏竹红
2025-09-28 22:00:39 +08:00
parent 4cdc045ea6
commit 3c53c4bc5d

View File

@@ -167,6 +167,10 @@ public class PushServiceImpl implements PushService {
@Override @Override
public String getYlsToken(GetAccessTokenDTO dto) { public String getYlsToken(GetAccessTokenDTO dto) {
String yls = redisUtilPool.getString("yls");
if (StringUtils.isNotBlank(yls)) {
throw new ServiceException(ErrorCodeEnum.THIRD_API_ERROR,"云流水系统修复中");
}
String apiUrl = ylsUrl + "/Store.axd?action=getToken"; String apiUrl = ylsUrl + "/Store.axd?action=getToken";
return executeApiCall(apiUrl, dto, String.class, ylsUsername, ylsSecret); return executeApiCall(apiUrl, dto, String.class, ylsUsername, ylsSecret);
} }