master
ck 5 years ago
parent a687701fef
commit 900312b6da

@ -214,12 +214,12 @@ public class CaseContentController {
* @return
*/
@RequestMapping(value = "/upload-content-url", produces = "text/html;charset=UTF-8")
public String uploadContentUrl(MultipartFile file, Long categoryId) {
public String uploadContentUrl(MultipartFile file) {
Map<String, Object> value = new HashMap<>();
try {
if(file!=null){
//保存文件
String url = ossService.uploadCategoryUrl(file,filedir,categoryId);
String url = ossService.uploadCategoryUrl(file,filedir);
logger.debug("图片路径{}",url);
value.put("code", 2000);
value.put("msg", "图片上传成功");

Loading…
Cancel
Save