Browse Source

测试上传简历

zmw 3 months ago
parent
commit
17f2b6170e
1 changed files with 5 additions and 2 deletions
  1. 5 2
      app/Admin/Controllers/Health/IndexController.php

+ 5 - 2
app/Admin/Controllers/Health/IndexController.php

@@ -260,9 +260,12 @@ class IndexController extends Controller
     public function qjwjStatus(Request $request){
     public function qjwjStatus(Request $request){
 
 
         $info = QjwjAppoint::where(['id' => $request->id])->get();
         $info = QjwjAppoint::where(['id' => $request->id])->get();
-        dd($info);
         if($info){
         if($info){
-
+            $info->status = 1;
+            $info->save();
+            return response()->json(['status' => 1, 'msg' => '跳转下载中!', 'data' => 'ok', 'url' => $info->attachment]);
+        }else{
+            return response()->json(['status' => 0, 'msg' => '找不到记录!', 'data' => 'fail']);
         }
         }
         //return "/storage/recruit/word/" . $recruit->name_en . '/' .$appoint->audit .$word_url;
         //return "/storage/recruit/word/" . $recruit->name_en . '/' .$appoint->audit .$word_url;
     }
     }