Documentation ¶
Index ¶
- Variables
- func CBCDecrypt(ciphertext string, key string) string
- func CardRender(canvas *gg.Context, dataOrigin []byte) *gg.Context
- func DecHashToRaw(raw string) string
- func DrawParallelogram(img image.Image) image.Image
- func GetRank(num int, isFC bool) string
- func GetUserChallengeMode(num int) (challenge string, link string)
- func GetUserInfoTimeFromDatabase(userID int64) int64
- func InitDataBase() error
- func PhiBind(ctx *rei.Ctx, bindAcc string)
- func RawJsonParse(raw string) (qq int64, Session string)
- func RenderPhi(ctx *rei.Ctx)
- func RollToRenderPhigros(ctx *rei.Ctx, num string)
- func SetDiffColor(diff string, canvas *gg.Context)
- type PhigrosSQL
- type PhigrosStruct
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ChanllengeMode = transform.ReturnLucyMainDataIndex("phi") + "rec/challengemode/"
)
Functions ¶
func CBCDecrypt ¶
func CardRender ¶
CardRender Render By Original Image,so it's single work and do slowly.
func DecHashToRaw ¶
func DrawParallelogram ¶
DrawParallelogram Draw Card TriAnglePath
func GetUserChallengeMode ¶
GetUserChallengeMode Challenge Mode Type Reply
func InitDataBase ¶
func InitDataBase() error
func RawJsonParse ¶
func RollToRenderPhigros ¶
Types ¶
type PhigrosSQL ¶
type PhigrosSQL struct { Id int64 `db:"user_tgid"` // tgid PhiSession string `db:"session"` // pgr session Time int64 `db:"time"` // time. }
func FormatUserDataBase ¶
func FormatUserDataBase(tgid int64, session string, Time int64) *PhigrosSQL
func GetUserInfoFromDatabase ¶
func GetUserInfoFromDatabase(userID int64) *PhigrosSQL
func (*PhigrosSQL) BindUserDataBase ¶
func (info *PhigrosSQL) BindUserDataBase() error
type PhigrosStruct ¶
type PhigrosStruct struct { Status bool `json:"status"` Message string `json:"message"` Content struct { Phi bool `json:"phi"` BestList []struct { Score int `json:"score"` Acc float64 `json:"acc"` Level string `json:"level"` Fc bool `json:"fc"` SongId string `json:"songId"` Songname string `json:"songname"` Difficulty float64 `json:"difficulty"` Rks float64 `json:"rks"` } `json:"bests"` PlayerID string `json:"PlayerID"` ChallengeModeRank int `json:"ChallengeModeRank"` RankingScore float64 `json:"RankingScore"` } `json:"content"` }
Click to show internal directories.
Click to hide internal directories.