Commit 2f380c96 authored by 张育槟's avatar 张育槟

优化保存功能

parent b6d299b4
......@@ -188,7 +188,14 @@ class LdapController extends Controller
$ou_str = implode(',',array_reverse($ous));
$dept_name=$ou_str;
}
foreach ($data as $key => $value) {
foreach ($data as $key => $users) {
$value=$users['fullName']?$users['fullName']:'';;
$mobileNumber=$users['mobileNumber']?$users['mobileNumber']:'';
$company_email=$users['company_email']?$users['company_email']:'';
$account=$users['account']?$users['account']:'';
$first_name=$users['first_name']?$users['first_name']:'';
$last_name=$users['last_name']?$users['last_name']:'';
if (is_numeric($key)) continue;
$user=$this->provider->search()->find($key);
if ($user->exists) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment