Commit 8a355d2d authored by jiangbowen's avatar jiangbowen

test conn

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