| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 | 
							- <?php
 
- namespace App\Http\Controllers\Mobile\DouyinRecruit;
 
- use App\Http\Controllers\Mobile\MobileBaseController;
 
- use App\Models\DouyinRecruit\CompanyEmployee;
 
- class EmpController extends MobileBaseController
 
- {
 
-     /**
 
-      * 注册
 
-      */
 
-     public function register($id)
 
-     {
 
-         return view('mobile.app.douyin_recruit.register', ['id' => $id, 'wap_title' => '注册']);
 
-     }
 
-     /**
 
-      * 注册提交
 
-      */
 
-     public function registerPost()
 
-     {
 
-         $post = request()->post();
 
-         unset($post['_token']);
 
-         CompanyEmployee::where('id', $post['id'])->update($post);
 
-         return $this->sendSuccessResponse(['id' => $post['id']]);
 
-     }
 
-     /**
 
-      * 详情页
 
-      */
 
-     public function info($id)
 
-     {
 
-         $emp = CompanyEmployee::where('id', $id)->first();
 
-         if (empty($emp)) {
 
-             return '';
 
-         }
 
-         if (empty($emp['name'])) {
 
-             return redirect(route('mobile.douyin_recruit.emp.register', ['id' => $emp['id']]));
 
-         }
 
-         return view('mobile.app.douyin_recruit.info', ['id' => $id, 'wap_title' => '分享链接']);
 
-     }
 
- }
 
 
  |