“mitao”
2026-01-04 6ff2e616cd1c1e986735c5a8c1f991ab9dfe5ec4
ruoyi-applet/src/main/java/com/ruoyi/web/controller/api/IndexController.java
@@ -46,7 +46,7 @@
    @ApiOperation("根据推广码获取上级用户信息")
    @GetMapping("/getSuperiorInfo")
    public R<SupervisorUserVO> getSuperiorInfo(@ApiParam(name = "superiorType", value = "上级类型 1:股东;2:营销员")
    public R<SupervisorUserVO> getSuperiorInfo(@ApiParam(name = "superiorType", value = "上级类型 1:股东;2:营销员/合伙人")
                                               @NotNull(message = "上级类型不能为空") @RequestParam Integer superiorType,
                                               @ApiParam(name = "spreadCode", value = "推广码")
                                               @NotNull(message = "推广码不能为空") @RequestParam String spreadCode) {
@@ -58,7 +58,7 @@
                supervisorUserVO.setId(sysUser.getUserId().intValue());
                supervisorUserVO.setPhone((String) PhoneUtil.hideBetween(sysUser.getPhonenumber()));
                supervisorUserVO.setNickName(sysUser.getNickName());
                supervisorUserVO.setAvatar(""); //todo 设置默认头像
                supervisorUserVO.setAvatar(sysUser.getAvatar());
            }
        } else {
            tAppUserService.lambdaQuery().eq(TAppUser::getCode, spreadCode).ne(TAppUser::getStatus, 3).last("LIMIT 1").oneOpt()