Commit 1bde3990 authored by 张育槟's avatar 张育槟

调试1

parent eb8f3a44
......@@ -305,7 +305,8 @@ class LdapController extends Controller
// '档案出版管理/项目管理部/Users_Hoto','产品技术中心/IT发展部/Users_Hoto','测试部/产品技术中心/IT发展部/Users_Hoto'];
$result = $this->provider->search()->ous()->get();
$result = json_decode(json_encode($result), true);
foreach ($result as $key=>$value) {
$key=0;
foreach ($result as $value) {
$new_distinguishedname_arr = [];
$distinguishedname = $value['distinguishedname'][0];
$distinguishedname_arr = explode(',', $distinguishedname);
......@@ -319,6 +320,7 @@ class LdapController extends Controller
}
//echo $new_distinguishedname_str . "....\r\n";
$data[$key]=$new_distinguishedname_str;
$key++;
}
$res= ['status' => true,'msg'=>'success'];
//测试部/产品技术中心2/IT发展部
......
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