Jonlin 6 år sedan
förälder
incheckning
568b46863c
1 ändrade filer med 1 tillägg och 2 borttagningar
  1. 1 2
      app/Http/Controllers/Admin/SportsSoccerController.php

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

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