|
@@ -49,10 +49,11 @@ public class ResourceController {
|
|
|
}
|
|
|
|
|
|
Integer type = resourceSearchDTO.getType();
|
|
|
- if (type.intValue() == ResourceType.IMG) {
|
|
|
+ if (type.intValue() == ResourceType.IMG || type.intValue() == ResourceType.AUDIO) {
|
|
|
// 图片本地取
|
|
|
Resource resource = new Resource();
|
|
|
|
|
|
+ resource.setType(type);
|
|
|
String code = resourceSearchDTO.getCode();
|
|
|
if (!StringUtils.isEmpty(code)) {
|
|
|
resource.setCode("%" + code.trim() + "%");
|