修复无法正常导入成员的问题
Signed-off-by: vilson <545522390@qq.com>
This commit is contained in:
parent
570120625c
commit
88d8be3908
@ -146,6 +146,12 @@ class DepartmentMember extends CommonModel
|
||||
}
|
||||
} else {
|
||||
$memberAccount = MemberAccount::where(['member_code' => $member['code'], 'organization_code' => $organizationCode])->find();
|
||||
if (!$memberAccount) {
|
||||
$memberAccount = MemberAccount::inviteMember($member['code'], $organizationCode, $position, $mobile, '', $description);
|
||||
if (!isError($memberAccount)) {
|
||||
$count++;
|
||||
}
|
||||
}
|
||||
}
|
||||
if ($departments) {
|
||||
$departmentList = explode(';', $departments);
|
||||
@ -168,6 +174,8 @@ class DepartmentMember extends CommonModel
|
||||
} catch (Exception $e) {
|
||||
return error(2, $e->getMessage());
|
||||
}
|
||||
}else{
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user