Documentation ¶
Index ¶
- Constants
- Variables
- type BetStructure
- type Login
- type OrderBean
- type OrderProcessor
- type Pk10OrderStructure
- func (od *Pk10OrderStructure) GetRateData() error
- func (od *Pk10OrderStructure) GetRateDataSsc() error
- func (od *Pk10OrderStructure) Order() (err error)
- func (od *Pk10OrderStructure) OrderSsc() (err error)
- func (od *Pk10OrderStructure) ParesOddsURL() string
- func (od *Pk10OrderStructure) ParesOddsURLSsc() string
- func (od *Pk10OrderStructure) ParseObj() (err error)
- func (od *Pk10OrderStructure) ParseObjSsc() (err error)
- type UserAccountProcessor
- type UserInfo
Constants ¶
View Source
const (
//OddsCateMapFormat 当前期彩种赔率表
OddsCateMapFormat = "odds?lottery=%s&games=%s&_=%d"
)
Variables ¶
View Source
var ( //ErrInvalidUser = errors.New("用户名或密码不正确") ErrFailedLogin = errors.New("登陆失败") ErrInvalidJSON = errors.New("json验证失败") //ErrNeedUpdatePassword = errors.New("账户需要更新密码") ErrCookie = errors.New("登录信息失效") )
View Source
var (
ErrGetOdds = errors.New("从目标网址抓取赔率信息失败,可能已封盘")
)
Functions ¶
This section is empty.
Types ¶
type BetStructure ¶
type Login ¶
type Login struct { //CookieJar 保持cookie唯一 CookieJar http.CookieJar HostIndex string UserId string RawPassword string Attach string Content string SrcMember string UserInfo UserAccount UserAccountProcessor `json:"-"` WsInstance model.WsProcess // contains filtered or unexported fields }
func (*Login) OrderAction ¶
func (l *Login) OrderAction(orderBean *model.FlySplitRecords) (err error)
func (*Login) SetWebSocket ¶
type OrderProcessor ¶
type Pk10OrderStructure ¶
type Pk10OrderStructure struct { *Login OrderObj OrderProcessor GameType string Issue string Gid int64 RateRawStr string PostData *BetStructure }
func (*Pk10OrderStructure) GetRateData ¶
func (od *Pk10OrderStructure) GetRateData() error
2->GetRateData 获取原始赔率字符串
func (*Pk10OrderStructure) GetRateDataSsc ¶
func (od *Pk10OrderStructure) GetRateDataSsc() error
2->GetRateData 获取原始赔率字符串
func (*Pk10OrderStructure) ParesOddsURL ¶
func (od *Pk10OrderStructure) ParesOddsURL() string
1->获取赔率表连接地址
func (*Pk10OrderStructure) ParesOddsURLSsc ¶
func (od *Pk10OrderStructure) ParesOddsURLSsc() string
1->获取赔率表连接地址
func (*Pk10OrderStructure) ParseObj ¶
func (od *Pk10OrderStructure) ParseObj() (err error)
a=>ParseObj
func (*Pk10OrderStructure) ParseObjSsc ¶
func (od *Pk10OrderStructure) ParseObjSsc() (err error)
a=>ParseObj
type UserAccountProcessor ¶
Click to show internal directories.
Click to hide internal directories.