Browse Source

公司提交成功返回公司id

kely 8 months ago
parent
commit
2f22849418
1 changed files with 6 additions and 1 deletions
  1. 6 1
      app/Http/Controllers/API/CompanyController.php

+ 6 - 1
app/Http/Controllers/API/CompanyController.php

@@ -103,7 +103,12 @@ class CompanyController extends Controller
 
 
         $service->association($company->id);
         $service->association($company->id);
 
 
-        return $this->created();
+
+        return $this->success([
+            'data' => [
+                'company_id' => $company->id,
+            ]
+        ]);
     }
     }
 
 
     //公司审核
     //公司审核