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