|
|
@@ -54,6 +54,16 @@ public class WxLoginController
|
|
|
return AjaxResult.success(map);
|
|
|
}
|
|
|
|
|
|
+ @ApiOperation("刷新令牌")
|
|
|
+ @PostMapping("/refreshToken")
|
|
|
+ public AjaxResult refreshToken(@RequestBody String unionId)
|
|
|
+ {
|
|
|
+ String token = wxLoginService.refreshToken(unionId);
|
|
|
+ Map<String,Object> map = new HashMap<>();
|
|
|
+ map.put(Constants.TOKEN, token);
|
|
|
+ return AjaxResult.success(map);
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* 获取用户信息
|
|
|
*
|