|
@@ -104,7 +104,7 @@ router.get('/get_original_data', (req, res) => {
|
|
|
* 获取关联列表
|
|
* 获取关联列表
|
|
|
*/
|
|
*/
|
|
|
router.get('/get_games_relation', (req, res) => {
|
|
router.get('/get_games_relation', (req, res) => {
|
|
|
- const { mk, ids, le, lp, lo, hb, hh } = req.query;
|
|
|
|
|
|
|
+ const { mk, ids, le, lp, lo, hb, hh, ho } = req.query;
|
|
|
const gamesRelation = Games.getGamesRelation({
|
|
const gamesRelation = Games.getGamesRelation({
|
|
|
ids: ids?.split(',').map(item => +item.trim()).filter(item => !!item) ?? [],
|
|
ids: ids?.split(',').map(item => +item.trim()).filter(item => !!item) ?? [],
|
|
|
listEvents: le === 'true',
|
|
listEvents: le === 'true',
|
|
@@ -112,6 +112,7 @@ router.get('/get_games_relation', (req, res) => {
|
|
|
listOdds: lo === 'true',
|
|
listOdds: lo === 'true',
|
|
|
hideBase: hb === 'true',
|
|
hideBase: hb === 'true',
|
|
|
hideHalf: hh === 'true',
|
|
hideHalf: hh === 'true',
|
|
|
|
|
+ hideOut: ho === 'true',
|
|
|
mk: (/^-?\d$/).test(mk) ? +mk : -1
|
|
mk: (/^-?\d$/).test(mk) ? +mk : -1
|
|
|
});
|
|
});
|
|
|
res.sendSuccess(gamesRelation);
|
|
res.sendSuccess(gamesRelation);
|