|
@@ -175,7 +175,9 @@ class BaseLeagueController extends Controller {
|
|
|
return responseToJson(-2002); //id????
|
|
return responseToJson(-2002); //id????
|
|
|
}
|
|
}
|
|
|
$id = array();
|
|
$id = array();
|
|
|
|
|
+ //$match_id = array();
|
|
|
$localleague = \App\Models\Stbqlocalleague::get();
|
|
$localleague = \App\Models\Stbqlocalleague::get();
|
|
|
|
|
+ //$match= \App\Models\SportsBase::get();
|
|
|
if (is_array($ids) && count($ids) > 0) {
|
|
if (is_array($ids) && count($ids) > 0) {
|
|
|
foreach ($ids as $k => $v) {
|
|
foreach ($ids as $k => $v) {
|
|
|
if (intval($v) < 1) {
|
|
if (intval($v) < 1) {
|
|
@@ -187,6 +189,11 @@ class BaseLeagueController extends Controller {
|
|
|
$id[] = $localleague[$i]->id;
|
|
$id[] = $localleague[$i]->id;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
+// for($j=0;$j<count($match);$j++){
|
|
|
|
|
+// if($match[$i]->lg_id == $league->lg_id){
|
|
|
|
|
+// $match_id[] = $match[$i]->match_id;
|
|
|
|
|
+// }
|
|
|
|
|
+// }
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -199,6 +206,14 @@ class BaseLeagueController extends Controller {
|
|
|
if (!$row) {
|
|
if (!$row) {
|
|
|
return responseToJson(-2003); //id????
|
|
return responseToJson(-2003); //id????
|
|
|
}
|
|
}
|
|
|
|
|
+// $row1 = \App\Models\SportsBase::whereIn('match_id', $match_id)->delete();
|
|
|
|
|
+// if (!$row1) {
|
|
|
|
|
+// return responseToJson(-2003); //id????
|
|
|
|
|
+// }
|
|
|
|
|
+// $row2 = \App\Models\Stbqlocalmatch::whereIn('match_id', $match_id)->delete();
|
|
|
|
|
+// if (!$row2) {
|
|
|
|
|
+// return responseToJson(-2003); //id????
|
|
|
|
|
+// }
|
|
|
return responseToJson(1, trans('menu.delete_success')); //id????
|
|
return responseToJson(1, trans('menu.delete_success')); //id????
|
|
|
|
|
|
|
|
}
|
|
}
|