Browse Source

测试上传简历

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

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

@@ -259,9 +259,10 @@ 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])->first();
         if($info){
         if($info){
-            QjwjAppoint::where(['id' => $request->id])->save(['status' => 1]);
+            $info->status = 1;
+            $info->save();
             return response()->json(['status' => 1, 'msg' => '跳转下载中!', 'data' => 'ok', 'url' => $info->attachment]);
             return response()->json(['status' => 1, 'msg' => '跳转下载中!', 'data' => 'ok', 'url' => $info->attachment]);
         }else{
         }else{
             return response()->json(['status' => 0, 'msg' => '找不到记录!', 'data' => 'fail']);
             return response()->json(['status' => 0, 'msg' => '找不到记录!', 'data' => 'fail']);