Documentation ¶
Index ¶
- Constants
- Variables
- func DM(gt, challenge string) (*common.Verification, error)
- func RefreshCToken(account config.Account) (config.Account, error)
- func RefreshSToken(account config.Account) (config.Account, error)
- func RefreshSTokenAuto(account config.Account) (config.Account, error)
- func Verify(account config.Account) (verification *common.Verification, _ error)
- func WaitQRCodeConfirmed(ticket string, account config.Account) (config.Account, error)
- type SignForumRecord
- type SignGameRecord
- type SignGameRecords
Constants ¶
View Source
const ( VerifyRetry = 10 PostView = 3 PostUpvote = 10 PostLoop = 10 )
Variables ¶
View Source
var SignGameIdByBiz = map[string]string{ common.GameBizBH3CN: common.GameIdBH3, common.GameBizYSCN: common.GameIdYS, common.GameBizSRCN: common.GameIdSR, }
Functions ¶
func RefreshSTokenAuto ¶ added in v1.1.13
Types ¶
type SignForumRecord ¶ added in v1.1.0
type SignForumRecord struct { GameId string GameName string HasSigned bool IsRisky bool IsSuccess bool Verify int Points int PostView int PostUpvote int LoopCount int }
func SignForum ¶ added in v1.1.0
func SignForum(account config.Account) (record SignForumRecord, err error)
func (SignForumRecord) Name ¶ added in v1.1.0
func (r SignForumRecord) Name() string
func (SignForumRecord) Success ¶ added in v1.1.0
func (r SignForumRecord) Success() string
type SignGameRecord ¶ added in v1.1.0
type SignGameRecord struct { GameId string GameName string RoleName string RoleUid string HasSigned bool IsRisky bool IsSuccess bool Verify int Award string }
func SignGameRole ¶ added in v1.1.0
type SignGameRecords ¶ added in v1.1.0
type SignGameRecords []SignGameRecord
func SignGame ¶ added in v1.1.0
func SignGame(account config.Account) (_ SignGameRecords, err error)
func SignGameRoles ¶ added in v1.1.0
func (SignGameRecords) Name ¶ added in v1.1.0
func (rs SignGameRecords) Name() string
func (SignGameRecords) Success ¶ added in v1.1.0
func (rs SignGameRecords) Success() string
Click to show internal directories.
Click to hide internal directories.