101captain
2022-07-22 4137e42f01a95b9b43626ceef5cbad9669a1564e
bug修改
1个文件已修改
7 ■■■■■ 已修改文件
springcloud_k8s_panzhihuazhihuishequ/service_user/src/main/java/com/panzhihua/service_user/api/UserApi.java 7 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
springcloud_k8s_panzhihuazhihuishequ/service_user/src/main/java/com/panzhihua/service_user/api/UserApi.java
@@ -103,11 +103,12 @@
     */
    @PostMapping("/getUserInfo")
    public R<LoginUserInfoVO> getUserInfo(@RequestParam("userName") String userName) {
        int index = userName.indexOf("_");
        int index2 = userName.lastIndexOf("_");
        String type = userName.substring(index + 1,index2);
        String name = userName.substring(0, index);
        String appid=userName.substring(index2+1);
        String username=userName.substring(0,index2);
        int index = username.lastIndexOf("_");
        String type = username.substring(index + 1);
        String name = username.substring(0, index);
        return userService.getUserInfo(name, Integer.parseInt(type),appid);
    }