|
@@ -8,6 +8,7 @@ import cn.rankin.common.utils.enums.BaseStatusEnum;
|
|
|
import cn.rankin.data.api.resource.entity.Resource;
|
|
|
import cn.rankin.common.utils.constant.ResourceType;
|
|
|
import lombok.Data;
|
|
|
+import org.apache.commons.lang.StringUtils;
|
|
|
|
|
|
@Data
|
|
|
public class ResourceRemote implements Serializable {
|
|
@@ -63,7 +64,13 @@ public class ResourceRemote implements Serializable {
|
|
|
resource.setCode(no);
|
|
|
resource.setName(title);
|
|
|
resource.setType(type);
|
|
|
- resource.setUrl(v.getFullPath());
|
|
|
+ if(StringUtils.isNotBlank(v.getFullPath())){
|
|
|
+ resource.setUrl(v.getFullPath()
|
|
|
+ .replace("http://efunvideo.ai160.com","https://efunvideo.ai160.com")
|
|
|
+ .replace("http://ljvideo.ai160.com","https://efunvideo.ai160.com"));
|
|
|
+ }else{
|
|
|
+ resource.setUrl(v.getFullPath());
|
|
|
+ }
|
|
|
resource.setFormat(v.getFormat());
|
|
|
resource.setQuality(v.getQuality());
|
|
|
resource.setSize(v.getSize());
|