由于uni-app的上传图片uni.uploadFile目前仅支持POST方法,所以将PUT改为POST

This commit is contained in:
sfmind 2022-04-20 23:55:41 +08:00
parent 93352b5386
commit 0d08ed26a5

View File

@ -40,7 +40,7 @@ public class AppUserController {
return success(true); return success(true);
} }
@PutMapping("/update-avatar") @PostMapping("/update-avatar")
@ApiOperation("修改用户头像") @ApiOperation("修改用户头像")
@PreAuthenticated @PreAuthenticated
public CommonResult<String> updateUserAvatar(@RequestParam("avatarFile") MultipartFile file) throws Exception { public CommonResult<String> updateUserAvatar(@RequestParam("avatarFile") MultipartFile file) throws Exception {