mihoyo

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2023 License: MIT Imports: 14 Imported by: 0

Documentation

Overview

Package mihoyo 提供米哈游相关的网络接口与辅助函数 此包以废弃状态,不再维护,仅供参考

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrSigned = errors.New("已签到")
)

Functions

func DoMYSGenshinSign

func DoMYSGenshinSign(uid int64, cookie string) (bool, error)

DoMYSGenshinSign 执行米游社原神签到

传入用户的 uid 和 cookie 执行签到。目前只支持官服,国际服未支持 cookie 的获取方法可以参照这里:https://www.feiyuacg.com/tutorial/1891.html

func IsSigned

func IsSigned(uid int64) (bool, error)

IsSigned 根据用户 uid 检查是否已经签到

Types

This section is empty.

Jump to

Keyboard shortcuts

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