|
@@ -31,6 +31,7 @@ public class ApiFileController {
|
|
|
*/
|
|
|
@RequestMapping(value = "upload", method = RequestMethod.POST)
|
|
|
public ResultData uploadFile(String key, @RequestParam("file") MultipartFile file) throws Exception {
|
|
|
+ log.info("key:{}, fileName:{}", key, file.getOriginalFilename());
|
|
|
if(ObjectUtils.isEmpty(key) || ObjectUtils.isEmpty(file)){
|
|
|
log.error("参数有误!");
|
|
|
throw new BusinessException(ErrorCode.PARAM_REQUIRED);
|