|
@@ -24,6 +24,7 @@ import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
import org.springframework.web.multipart.MultipartFile;
|
|
|
|
|
|
+import java.util.HashMap;
|
|
|
import java.util.List;
|
|
|
import java.util.Map;
|
|
|
|
|
@@ -107,10 +108,10 @@ public class PortalSysDeptJlController extends BaseController
|
|
|
{
|
|
|
return AjaxResult.error("文件服务异常,请联系管理员");
|
|
|
}
|
|
|
- AjaxResult ajax = AjaxResult.success();
|
|
|
- ajax.put("url", fileResult.getData().getUrl());
|
|
|
- ajax.put("name", fileResult.getData().getName());
|
|
|
- return ajax;
|
|
|
+ Map<String, String> res = new HashMap<>();
|
|
|
+ res.put("url", fileResult.getData().getUrl());
|
|
|
+ res.put("name", fileResult.getData().getName());
|
|
|
+ return AjaxResult.success(res);
|
|
|
}
|
|
|
return AjaxResult.error("上传图片异常,请联系管理员");
|
|
|
}
|