Commit 8a355d2d authored by jiangbowen's avatar jiangbowen

test conn

parent 9120d903
...@@ -26,7 +26,9 @@ class LdapController extends Controller ...@@ -26,7 +26,9 @@ class LdapController extends Controller
} }
public function handle(Request $request) public function handle(Request $request)
{ {
//TODO...access_token校验
$data = $request->all(); $data = $request->all();
$data = json_decode($data,true);
//新增人员数据格式: //新增人员数据格式:
$data = [ $data = [
'operation_type'=>'emp', 'operation_type'=>'emp',
...@@ -37,7 +39,7 @@ class LdapController extends Controller ...@@ -37,7 +39,7 @@ class LdapController extends Controller
$data = [ $data = [
'operation_type'=>'emp', 'operation_type'=>'emp',
'operation'=>"edit", 'operation'=>"edit",
'data'=>['jiangbowen9090'=>'jiangbowen9090et','jiangbowen90912'] 'data'=>['jiangbowen9090'=>'jiangbowen9090et']
]; ];
//删除人员格式 //删除人员格式
$data = [ $data = [
......
...@@ -49,4 +49,5 @@ Route::get('/ad', function () { ...@@ -49,4 +49,5 @@ Route::get('/ad', function () {
}); });
Route::get('/ad2','LdapController@handle'); Route::get('/ad2','LdapController@handle');
\ No newline at end of file Route::post('/syncAd','LdapController@handle');
\ No newline at end of file
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