|
|
@ -5,6 +5,7 @@ import com.by.api.common.CommonResponse;
|
|
|
|
import com.by.api.convert.ShortChainVOToDTOConvert;
|
|
|
|
import com.by.api.convert.ShortChainVOToDTOConvert;
|
|
|
|
import com.by.api.vo.ShortChainRequestVO;
|
|
|
|
import com.by.api.vo.ShortChainRequestVO;
|
|
|
|
import com.by.api.vo.ShortChainResponseVO;
|
|
|
|
import com.by.api.vo.ShortChainResponseVO;
|
|
|
|
|
|
|
|
import com.by.constants.SymbolConstant;
|
|
|
|
import com.by.constants.SystemConstant;
|
|
|
|
import com.by.constants.SystemConstant;
|
|
|
|
import com.by.dto.ShortChainDTO;
|
|
|
|
import com.by.dto.ShortChainDTO;
|
|
|
|
import com.by.entity.ShortUrl;
|
|
|
|
import com.by.entity.ShortUrl;
|
|
|
@ -82,7 +83,7 @@ public class ShortServerOpenApiController {
|
|
|
|
if (!Objects.isNull(shortUrl)){
|
|
|
|
if (!Objects.isNull(shortUrl)){
|
|
|
|
// 异步进行更新数据库中的点击记录及推送给之前的调用方(可以走消息)
|
|
|
|
// 异步进行更新数据库中的点击记录及推送给之前的调用方(可以走消息)
|
|
|
|
shortChainTask.doRunTask(shortUrl);
|
|
|
|
shortChainTask.doRunTask(shortUrl);
|
|
|
|
originUrl = shortUrl.getOriginUrl();
|
|
|
|
originUrl = StringUtils.substringBefore(shortUrl.getOriginUrl(), SymbolConstant.SPLIT_VERTICAL);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
return new ModelAndView("redirect:" + originUrl);
|
|
|
|
return new ModelAndView("redirect:" + originUrl);
|
|
|
|