|
@@ -5,6 +5,7 @@ import cn.rankin.data.api.resource.entity.Resource;
|
|
|
import cn.rankin.common.utils.constant.ResourceType;
|
|
|
import lombok.Data;
|
|
|
import lombok.ToString;
|
|
|
+import org.apache.commons.lang.StringUtils;
|
|
|
|
|
|
import java.io.Serializable;
|
|
|
import java.util.Date;
|
|
@@ -58,7 +59,12 @@ public class ResourceDetail implements Serializable {
|
|
|
resource.setCode(no);
|
|
|
resource.setName(title);
|
|
|
resource.setType(type);
|
|
|
- resource.setUrl(fullPath);
|
|
|
+ if(StringUtils.isNotBlank(fullPath)){
|
|
|
+ resource.setUrl(fullPath.replace("http://efunvideo.ai160.com","https://efunvideo.ai160.com")
|
|
|
+ .replace("http://ljvideo.ai160.com","https://efunvideo.ai160.com"));
|
|
|
+ }else{
|
|
|
+ resource.setUrl(fullPath);
|
|
|
+ }
|
|
|
resource.setFormat(format);
|
|
|
resource.setQuality(quality);
|
|
|
resource.setSize(size);
|