|
|
@@ -9,6 +9,7 @@ import com.izouma.nineth.service.MetaResourcesService;
|
|
|
import com.izouma.nineth.utils.ObjUtils;
|
|
|
import com.izouma.nineth.utils.excel.ExcelUtils;
|
|
|
import lombok.AllArgsConstructor;
|
|
|
+import org.apache.commons.lang3.StringUtils;
|
|
|
import org.springframework.data.domain.Page;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
@@ -69,10 +70,10 @@ public class MetaResourcesController extends BaseController {
|
|
|
if (Objects.isNull(metaResources)) {
|
|
|
return MetaRestResult.returnError("不存在该名称的资源");
|
|
|
}
|
|
|
- if (Objects.isNull(metaResources.getPic())) {
|
|
|
+ if (StringUtils.isBlank(metaResources.getValue())) {
|
|
|
return MetaRestResult.returnError("该名称的资源文件为空");
|
|
|
}
|
|
|
- return MetaRestResult.returnSuccess("查询成功", metaResources.getPic().get(0).getUrl());
|
|
|
+ return MetaRestResult.returnSuccess("查询成功", metaResources.getValue());
|
|
|
}
|
|
|
}
|
|
|
|