Commit 0d08ed26a57a895bc37bed8e62614d56853edba2
1 parent
93352b53
由于uni-app的上传图片uni.uploadFile目前仅支持POST方法,所以将PUT改为POST
Showing
1 changed file
with
1 additions
and
1 deletions
yudao-module-member/yudao-module-member-impl/src/main/java/cn/iocoder/yudao/module/member/controller/app/user/AppUserController.java
| ... | ... | @@ -40,7 +40,7 @@ public class AppUserController { |
| 40 | 40 | return success(true); |
| 41 | 41 | } |
| 42 | 42 | |
| 43 | - @PutMapping("/update-avatar") | |
| 43 | + @PostMapping("/update-avatar") | |
| 44 | 44 | @ApiOperation("修改用户头像") |
| 45 | 45 | @PreAuthenticated |
| 46 | 46 | public CommonResult<String> updateUserAvatar(@RequestParam("avatarFile") MultipartFile file) throws Exception { | ... | ... |