Jonlin 6 years ago
parent
commit
5d8061eb9f
1 changed files with 2 additions and 2 deletions
  1. 2 2
      app/Http/Controllers/Admin/SportsSoccerController.php

+ 2 - 2
app/Http/Controllers/Admin/SportsSoccerController.php

@@ -320,8 +320,8 @@ class SportsSoccerController extends Controller {
         $cp_id = $req->id;
         $cp_id = $req->id;
         $request['status'] = isset($req->status) ? trim($req->status) : '-1';
         $request['status'] = isset($req->status) ? trim($req->status) : '-1';
         $request['p_code'] = isset($req->p_code) ? trim($req->p_code) : '-1';
         $request['p_code'] = isset($req->p_code) ? trim($req->p_code) : '-1';
-        $request['id'] = isset($req->id) ? trim($req->id) : null;
-        $newapp = \App\Models\SportsSoccer::where('match_id',$request['id'])->first();
+        $request['match_id'] = isset($req->match_id) ? trim($req->match_id) : null;
+        $newapp = \App\Models\SportsSoccer::where('match_id',$request['match_id'])->first();
        // $match_id = $newapp->match_id;
        // $match_id = $newapp->match_id;
         if(empty($newapp)){
         if(empty($newapp)){
             $match_id = $req->input('match_id');
             $match_id = $req->input('match_id');