job

package
v1.2.6 Latest Latest
Warning

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

Go to latest
Published: May 29, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	VerifyRetry = 10

	PostView   = 3
	PostUpvote = 10
	PostShare  = 1
	PostLoop   = 10
)

Variables

Functions

func DM

func DM(gt, challenge string) (*common.Verification, error)

func RefreshCToken

func RefreshCToken(account config.Account) (config.Account, error)

func RefreshSToken

func RefreshSToken(account config.Account) (config.Account, error)

func RefreshSTokenAuto added in v1.1.13

func RefreshSTokenAuto(account config.Account) (config.Account, error)

func Verify added in v1.0.4

func Verify(account config.Account) (verification *common.Verification, _ error)

func WaitQRCodeConfirmed

func WaitQRCodeConfirmed(ticket string, account config.Account) (config.Account, error)

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
	PostShare  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

func SignGameRole(role *miyoushe.GameRole, account config.Account) (record SignGameRecord, err error)

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 SignGameRoles(roles []*miyoushe.GameRole, account config.Account) (SignGameRecords, error)

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

Jump to

Keyboard shortcuts

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