|
|
@@ -16,10 +16,7 @@ import com.zhongzheng.modules.wx.bo.WxLoginBody;
|
|
|
import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
-import org.springframework.web.bind.annotation.GetMapping;
|
|
|
-import org.springframework.web.bind.annotation.PostMapping;
|
|
|
-import org.springframework.web.bind.annotation.RequestBody;
|
|
|
-import org.springframework.web.bind.annotation.RestController;
|
|
|
+import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
import java.util.HashMap;
|
|
|
import java.util.List;
|
|
|
@@ -55,8 +52,8 @@ public class WxLoginController
|
|
|
}
|
|
|
|
|
|
@ApiOperation("刷新令牌")
|
|
|
- @PostMapping("/refreshToken")
|
|
|
- public AjaxResult refreshToken(@RequestBody String unionId)
|
|
|
+ @PostMapping("/refreshToken/{unionId}")
|
|
|
+ public AjaxResult refreshToken(@PathVariable("unionId") String unionId)
|
|
|
{
|
|
|
String token = wxLoginService.refreshToken(unionId);
|
|
|
Map<String,Object> map = new HashMap<>();
|