|
@@ -181,6 +181,9 @@ class SportsBasketController extends Controller {
|
|
|
$parents[$k]['name']=$lange[$arr];
|
|
$parents[$k]['name']=$lange[$arr];
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
+ $data['match_date'] = date('Y-m-d');
|
|
|
|
|
+ $data['match_time'] = date('H:i:s');
|
|
|
|
|
+
|
|
|
$data['parents'] = $parents;
|
|
$data['parents'] = $parents;
|
|
|
return view('sports.basket_form', $data);
|
|
return view('sports.basket_form', $data);
|
|
|
} else {
|
|
} else {
|
|
@@ -400,6 +403,7 @@ class SportsBasketController extends Controller {
|
|
|
$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;
|
|
$request['id'] = isset($req->id) ? trim($req->id) : null;
|
|
|
|
|
+ $request['odds_id'] = isset($req->odds_id) ? trim($req->odds_id) : '';
|
|
|
$newapp = \App\Models\SportsBasket::where('id',$request['id'])->first();
|
|
$newapp = \App\Models\SportsBasket::where('id',$request['id'])->first();
|
|
|
// $match_id = $newapp->match_id;
|
|
// $match_id = $newapp->match_id;
|
|
|
if(empty($newapp)){
|
|
if(empty($newapp)){
|
|
@@ -438,6 +442,7 @@ class SportsBasketController extends Controller {
|
|
|
function oddsinfo(Req $req){
|
|
function oddsinfo(Req $req){
|
|
|
$lange = trans('sportsoddscode');
|
|
$lange = trans('sportsoddscode');
|
|
|
$match_id = $req->match_id;
|
|
$match_id = $req->match_id;
|
|
|
|
|
+ $odds_id = Request::has('odds_id') ? Request::get('odds_id') : '';
|
|
|
$p_code = Request::has('p_code') ? Request::get('p_code') : '';
|
|
$p_code = Request::has('p_code') ? Request::get('p_code') : '';
|
|
|
$status = Request::has('status') ? Request::get('status') : '';
|
|
$status = Request::has('status') ? Request::get('status') : '';
|
|
|
$where = array();
|
|
$where = array();
|
|
@@ -450,6 +455,9 @@ class SportsBasketController extends Controller {
|
|
|
}
|
|
}
|
|
|
$where[] = array('st_lq_odds.status', '=', $status);
|
|
$where[] = array('st_lq_odds.status', '=', $status);
|
|
|
}
|
|
}
|
|
|
|
|
+ if(!empty($odds_id)){
|
|
|
|
|
+ $where[] = array('st_zq_odds.id', '=', $odds_id);
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
if (intval($match_id) < 1) {
|
|
if (intval($match_id) < 1) {
|
|
|
return -1;
|
|
return -1;
|