feat:getYlsToken
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user