@@ -13,4 +13,6 @@ import javax.validation.constraints.NotBlank; | |||
public class GetMiniProgramRoleRequestDTO extends AbstractBizRequestDTO { | |||
@NotBlank(message = "id不能为空") | |||
private String id; | |||
@NotBlank(message = "系统") | |||
private String sourceType; | |||
} |
@@ -51,7 +51,7 @@ public class AccountInfoManagerImpl extends AbstractCommManager implements Accou | |||
AccountInfo accountInfo = accountInfoRepo.findById(dto.getId()).orElse(null); | |||
if (accountInfo == null) throw new ManagerException("该用户不存在"); | |||
String openId = accountInfo.getOpenId(); | |||
SourceType sourceType = SourceType.findByCode(dto.getLoginSource()); | |||
SourceType sourceType = SourceType.findByCode(dto.getSourceType()); | |||
String baseRoleId = null; | |||
if (SourceType.WECHAT.equals(sourceType)) { |