diff --git a/src/app/modules/admin/member/partner/compose/regist-compose.component.ts b/src/app/modules/admin/member/partner/compose/regist-compose.component.ts index bd307dd..1b0f6bc 100644 --- a/src/app/modules/admin/member/partner/compose/regist-compose.component.ts +++ b/src/app/modules/admin/member/partner/compose/regist-compose.component.ts @@ -161,7 +161,7 @@ export class RegistComposeComponent implements OnInit { const site = new Site(); const parentUsername = !!this.data.parent?.getUsername() ? this.data.parent?.getUsername() - : ''; + : undefined; site.setId(siteId); member.setSiteId(siteId); @@ -169,7 +169,10 @@ export class RegistComposeComponent implements OnInit { member.setPassword(password); member.setMemberClassId(this.data.classId); member.setMemberLevelId('c56231ac-2120-4a81-a30a-5d41fafb6c57'); - member.setReferrerMemberUsername(parentUsername); + if (!!parentUsername) { + member.setReferrerMemberUsername(parentUsername); + } + member.setNickname(nickname); member.setMobilePhoneNumber(mobilePhoneNumber); member.setBankAccount(bank_account);