|
|
|
@ -237,11 +237,16 @@ public class UserLoginController { |
|
|
|
|
return userInfoService.loginByOpenid(openid); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@ApiOperation(value = "微信小程序更新用户头像") |
|
|
|
|
@ApiOperation(value = "微信小程序更新用户头像或名称") |
|
|
|
|
@PostMapping("/updateAvatars") |
|
|
|
|
public R updateAvatars(@RequestParam String url,HttpServletRequest request){ |
|
|
|
|
String id = TokenUtils.getIdByJwtToken(request); |
|
|
|
|
return userInfoService.updateAvatars(url,id); |
|
|
|
|
public R updateAvatars( |
|
|
|
|
@ApiParam(name = "url", value = "头像地址") |
|
|
|
|
@RequestParam String url, |
|
|
|
|
@ApiParam(name = "openId", value = "微信id", required = true) |
|
|
|
|
@RequestParam String openId, |
|
|
|
|
@ApiParam(name = "userName", value = "用户名称") |
|
|
|
|
@RequestParam String userName){ |
|
|
|
|
return userAccountService.updateAvatars(openId,url,userName); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|