sfc

package
v0.0.0-...-28fce05 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 9, 2020 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandlerIssue

func HandlerIssue(ctx *fasthttp.RequestCtx)

func HandlerMatch

func HandlerMatch(ctx *fasthttp.RequestCtx)

func HandlerOdds

func HandlerOdds(ctx *fasthttp.RequestCtx)

func Sfc

func Sfc(issue string, r9 bool) (*pkg.QkjInfo, error)

func SfcHisIssue

func SfcHisIssue() ([]string, error)

Types

type Match

type Match struct {
	Data struct {
		//Active       int64  `json:"active,string"`   // 0
		Addendtime string `json:"addendtime"` // 2019-06-05 20:00:00
		//Allowbuy     int64  `json:"allowbuy,string"` // 0
		Buyendtime   string `json:"buyendtime"`    // 2019-06-07 21:57:00
		Endtime      string `json:"endtime"`       // 2019-06-07 21:57:00
		Expect       int64  `json:"expect,string"` // 19074
		FutureExpect []struct {
			//Active        int64  `json:"active,string"`        // 1
			Addendtime string `json:"addendtime"` // 2019-06-01 21:30:00
			//Allowbuy      int64  `json:"allowbuy,string"`      // 1
			Buyendtime string `json:"buyendtime"` // 2019-06-01 21:30:00
			Endtime    string `json:"endtime"`    // 2019-06-01 21:30:00
			Expect     string `json:"expect"`     // 19073
			Opencode   string `json:"opencode"`   //

		} `json:"future_expect"`
		Match []struct {
			Cdata struct {
				CountAgainst string `json:"count_against"` // 2|2|0|0
				CountAway    string `json:"count_away"`    // 5胜1平4负
				CountHome    string `json:"count_home"`    // 9胜0平1负
				CountScore   string `json:"count_score"`   // 4|0
				CountTzbl    string `json:"count_tzbl"`    //
				Draw         string `json:"draw"`          // 3.88
				Lost         string `json:"lost"`          // 1.87
				OddsURL      string `json:"odds_url"`      // https://live.m.500.com/detail/football/737845/analysis/zj
				Win          string `json:"win"`           // 3.80
			} `json:"cdata"`
			Mdata struct {
				//Awaystanding  int64  `json:"awaystanding,string"`   // 0
				Awaysxname    string `json:"awaysxname"`            // 韩国女
				Bgcolor       string `json:"bgcolor"`               // #E61A42
				CurrentExpect int64  `json:"current_expect,string"` // 19074
				Expect        []struct {
					//Active        int64  `json:"active,string"`        // 1
					//Addendtime    string `json:"addendtime"`           // 2019-06-01 21:30:00
					//Allowbuy      int64  `json:"allowbuy,string"`      // 1
					Buyendtime string `json:"buyendtime"` // 2019-06-01 21:30:00
					Endtime    string `json:"endtime"`    // 2019-06-01 21:30:00
					Expect     string `json:"expect"`     // 19073
					Opencode   string `json:"opencode"`   //

				} `json:"expect"`
				Expert struct {
				} `json:"expert"`
				Fid         int64  `json:"fid,string"`  // 768563
				Fsendtime   string `json:"fsendtime"`   // 2019-06-07 21:57
				Guestteamid string `json:"guestteamid"` // 858
				//Homestanding int64  `json:"homestanding,string"` // 0
				Homesxname   string `json:"homesxname"`   // 法国女
				Hometeamid   string `json:"hometeamid"`   // 790
				Isvalid      string `json:"isvalid"`      // 1
				Ordernum     string `json:"ordernum"`     // 1
				Resultscore  string `json:"resultscore"`  // 06-08 03:00
				Simpleleague string `json:"simpleleague"` // 女世杯
			} `json:"mdata"`
			Pdata struct {
				Draw string `json:"draw"` // 7.38
				Lost string `json:"lost"` // 19.16
				Win  string `json:"win"`  // 1.12
			} `json:"pdata"`
		} `json:"match"`
		Opencode string `json:"opencode"` //

	} `json:"data"`
	Message string `json:"message"`       // OK
	Status  int64  `json:"status,string"` // 100
}

func GetZcMatchObject

func GetZcMatchObject(issue string) (*Match, error)

func (Match) Expect

func (p Match) Expect() []string

func (Match) Odds

func (p Match) Odds() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL