|
|
@@ -34,7 +34,7 @@ class Head extends Controller{
|
|
|
* 返回首页球类列表
|
|
|
*/
|
|
|
public function ballList (){
|
|
|
- $ret = lm('GameType', 'Sports')->select('id','game_name','game_code','game_ico_url')->where('status',1)->get();
|
|
|
+ $ret = lm('GameType', 'Sports')->select('id','game_name','game_code','game_ico_url')->where('status',1)->where([['id','<',12]])->get();
|
|
|
|
|
|
if(!empty($ret)) Render($ret, '1', lang('Tips','Sports')->get('success'));
|
|
|
|
|
|
@@ -171,6 +171,7 @@ class Head extends Controller{
|
|
|
//合并所有球类赛事
|
|
|
$matchAll = array_merge_recursive($ZQmatchData,$LQmatchData,$WQmatchData,$BQmatchData);
|
|
|
|
|
|
+ /*
|
|
|
//获取所有冠军盘口
|
|
|
$where = [
|
|
|
['type','=',1],
|
|
|
@@ -183,6 +184,7 @@ class Head extends Controller{
|
|
|
$BQoddsData = BQoddsModel::getOddsData($where,$select)->toArray();
|
|
|
//合并所有球类冠军盘口
|
|
|
$oddsAll = array_merge_recursive($ZQoddsData,$LQoddsData,$WQoddsData,$BQoddsData);
|
|
|
+ */
|
|
|
|
|
|
$StRollBall = [];
|
|
|
$StSoon = [];
|
|
|
@@ -234,9 +236,11 @@ class Head extends Controller{
|
|
|
case 'StStringScene'://串场
|
|
|
$type[$k]['matchNum'] = count($StStringScene);
|
|
|
break;
|
|
|
+ /*
|
|
|
case 'StChampion'://冠军
|
|
|
$type[$k]['matchNum'] = count($oddsAll);
|
|
|
break;
|
|
|
+ */
|
|
|
default:
|
|
|
throw new \Exception(Render([], '10002', lang('Tips', 'Sports')->get('PARAM_ERROR')));
|
|
|
}
|