1234567891011121314151617181920212223242526272829303132 |
- using CP.Model;
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Net;
- using System.Net.Http;
- using System.Web.Http;
- namespace CP.Api.Controllers
- {
- /// <summary>
- /// 获取所有彩种最新开奖号码
- /// </summary>
- public class TodayController : BaseApi
- {
- /// <summary>
- /// 获取所有彩种最新开奖号码
- /// </summary>
- /// <param name="type">0 全部数据 1 全国 2 地方 3 高频 </param>
- /// <returns></returns>
- [HttpGet]
- public ApiList<ApiModel> Get(int type = 0)
- {
- if(type == 1)
- {
- return ResponseList(Kjh.GetToday(type));
- }
- return ResponseList(Kjh.GetToday());
- }
- }
- }
|