gorden преди 1 месец
родител
ревизия
467cd1a164
променени са 1 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. 2 2
      app/admin/service/member/MemberService.php

+ 2 - 2
app/admin/service/member/MemberService.php

@@ -509,8 +509,8 @@ class MemberService
                     $nickname = $inviteMember['info']['member_info_nickname'];
                 }
                 $certname = '';
-                if (!empty($inviteMember['cert']) && !empty($inviteMember['cert']['member_info_nickname'])) {
-                    $nickname = $inviteMember['cert']['member_cert_name'];
+                if (!empty($inviteMember['cert']) && !empty($inviteMember['cert']['member_cert_name'])) {
+                    $certname = $inviteMember['cert']['member_cert_name'];
                 }
                 $member['invite_name'] = MemberService::getMemberName($mobile, $certname, $nickname);
                 $member['invite_code'] = $inviteMember['member_invite_code'] ?? '';