cqpCow 8 months ago
parent
commit
9f5d891d13
2 changed files with 7 additions and 0 deletions
  1. 6 0
      app/Http/Controllers/Api/EmployeeController.php
  2. 1 0
      routes/wx.php

+ 6 - 0
app/Http/Controllers/Api/EmployeeController.php

@@ -8,6 +8,12 @@ use Illuminate\Http\Request;
 
 class EmployeeController extends BaseController
 {
+    public function getLoginMan(Request $request){
+        $user = $request->userData->toArray();
+
+        return $this->json_return(200,'',$user);
+    }
+
     public function employeeEditOther(Request $request)
     {
         $service = new EmployeeService();

+ 1 - 0
routes/wx.php

@@ -124,4 +124,5 @@ Route::group(['middleware'=> ['checkWx']],function ($route){
     //跟进记录
     $route->any('followUpRecordAdd', 'Api\FollowUpRecordController@followUpRecordAdd')->middleware('OssFileDeal');
     $route->any('productCategoryList2', 'Api\ProductController@productCategoryList2');
+    $route->any('getLoginMan','Api\EmployeeController@getLoginMan');
 });