Commit 72dfc0cd authored by jiangbowen's avatar jiangbowen

test conn

parent 3387e307
...@@ -23,11 +23,18 @@ class LdapController extends Controller ...@@ -23,11 +23,18 @@ class LdapController extends Controller
public function handle(Request $request) public function handle(Request $request)
{ {
$data = $request->all(); $data = $request->all();
//新增人员数据格式:
$data = [ $data = [
'operation_type'=>'emp', 'operation_type'=>'emp',
'operation'=>"add", 'operation'=>"add",
'data'=>['jiangbowen9090','jiangbowen90912'] 'data'=>['jiangbowen9090','jiangbowen90912']
]; ];
//编辑人员数据格式:
$data = [
'operation_type'=>'emp',
'operation'=>"edit",
'data'=>['jiangbowen9090'=>'jiangbowen9090et','jiangbowen90912']
];
// var_dump($data); // var_dump($data);
if ($data['operation_type'] == 'emp') { if ($data['operation_type'] == 'emp') {
if ($data['operation'] == 'add') { if ($data['operation'] == 'add') {
......
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