diff --git a/src/main/java/com/chinaunicom/mall/ebtp/extend/userswitch/UserSwitchController.java b/src/main/java/com/chinaunicom/mall/ebtp/extend/userswitch/UserSwitchController.java index f1ec2c1..a7c9cb9 100644 --- a/src/main/java/com/chinaunicom/mall/ebtp/extend/userswitch/UserSwitchController.java +++ b/src/main/java/com/chinaunicom/mall/ebtp/extend/userswitch/UserSwitchController.java @@ -21,8 +21,8 @@ public class UserSwitchController { * @param role * @return */ - @PostMapping({"/findUser/{key}/{role}"}) - public BaseResponse findUser(@PathVariable String key,@PathVariable String role){ + @PostMapping({"/findUser"}) + public BaseResponse findUser(@RequestParam String key,@RequestParam String role){ return BaseResponse.success(userSwitchService.findUser(key,role)); } }