|
|
@@ -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');
|