Documentation ¶
Overview ¶
****************************************************************************** Copyright (c) 2010~2018 charles
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON INFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. created at 2018-11-07 17:11:20 *****************************************************************************
****************************************************************************** Copyright (c) 2010~2018 charles
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON INFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. created at 2018-11-07 17:11:29 *****************************************************************************
****************************************************************************** Copyright (c) 2010~2018 charles
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON INFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. created at 2018-11-07 17:11:32 *****************************************************************************
****************************************************************************** Copyright (c) 2010~2018 charles
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON INFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. created at 2018-11-07 17:11:35 *****************************************************************************
Index ¶
Constants ¶
const (
//OddsCateMapFormat 当前期彩种赔率表
OddsCateMapFormat = "odds?lottery=%s&games=%s&_=%d"
)
Variables ¶
var ( //ErrInvalidUser = errors.New("用户名或密码不正确") //ErrFailedLogin = errors.New("登陆失败") ErrInvalidJSON = errors.New("json验证失败") //ErrNeedUpdatePassword = errors.New("账户需要更新密码") ErrCookie = errors.New("登录信息失效") )
var (
ErrGetOdds = errors.New("从目标网址抓取赔率信息失败,可能已封盘")
)
Functions ¶
This section is empty.
Types ¶
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 PostData }
func (*Pk10OrderStructure) ParseObj ¶
func (od *Pk10OrderStructure) ParseObj() (err error)
a=>ParseObj
func (*Pk10OrderStructure) ParseObjSsc ¶
func (od *Pk10OrderStructure) ParseObjSsc() (err error)
a=>ParseObj
type PostData ¶
type PostData map[string]interface{}