feature

package
v0.0.0-...-a3ef211 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AppId        = "9021000123613685"
	PrivateKey   = "" /* 1624-byte string literal not displayed */
	AliPublicKey = "" /* 392-byte string literal not displayed */
	IsProduction = false
	ProductCode  = "FAST_INSTANT_TRADE_PAY"
	Host         = "http://zbiy92.natappfree.cc"
	NotifyURL    = "https://" + Host + "/notify"
	ReturnURL    = "http://127.0.0.1:8999/return"
)

Variables

This section is empty.

Functions

func GetJwtToken

func GetJwtToken(secretKey string, iat, seconds, userId int64) (string, error)

func GoPayV

func GoPayV()

func ParseToken

func ParseToken(tokenString string, secret string) (int64, error)

func PayUrl

func PayUrl()

Types

type UniSMS

type UniSMS struct {
	AccessKeyId  string
	AccessSecret string
	Signature    string
	TemplateId   string
}

func NewUniSMS

func NewUniSMS(AccessKeyId, AccessSecret, Signature, TemplateId string) *UniSMS

func (*UniSMS) SendCode

func (sms *UniSMS) SendCode(phone, code string) error

Jump to

Keyboard shortcuts

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