realname

package
v0.0.0-...-83adff0 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2020 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AlipayAntispamValue

type AlipayAntispamValue int

AlipayAntispamValue 最低位为pass flag ,高位为计数 计数:判断用户的申请次数 flag:是否通过本次防刷验证(极验是否通过)

func (*AlipayAntispamValue) Count

func (a *AlipayAntispamValue) Count() int

Count return antispam hit count

func (*AlipayAntispamValue) Flag

func (a *AlipayAntispamValue) Flag() int

Flag return antispam pass flag

func (*AlipayAntispamValue) IncreaseCount

func (a *AlipayAntispamValue) IncreaseCount()

IncreaseCount add antispam count

func (*AlipayAntispamValue) Pass

func (a *AlipayAntispamValue) Pass() bool

Pass return is antispam passed (such as when geetest passed)

func (*AlipayAntispamValue) SetPass

func (a *AlipayAntispamValue) SetPass(pass bool)

SetPass set is antispam verified (such as when geetest passed)

type Dao

type Dao struct {
	// contains filtered or unexported fields
}

Dao dao

func New

func New(c *conf.Config) (d *Dao)

New new

func (*Dao) AlipayAntispam

func (d *Dao) AlipayAntispam(c context.Context, mid int64) (value *AlipayAntispamValue, err error)

AlipayAntispam get alipay antispam count by mid

func (*Dao) AlipayInit

func (d *Dao) AlipayInit(c context.Context, param url.Values) (bizno string, err error)

AlipayInit .

func (*Dao) AlipayQuery

func (d *Dao) AlipayQuery(c context.Context, param url.Values) (pass bool, reason string, err error)

AlipayQuery .

func (*Dao) DeleteAlipayAntispam

func (d *Dao) DeleteAlipayAntispam(c context.Context, mid int64) (err error)

DeleteAlipayAntispam delete alipay antispam count by mid

func (*Dao) RealnameCaptchaGTRegister

func (d *Dao) RealnameCaptchaGTRegister(c context.Context, mid int64, ip, clientType string, newCaptcha int) (challenge string, err error)

RealnameCaptchaGTRegister register a geetest apply

func (*Dao) RealnameCaptchaGTRegisterValidate

func (d *Dao) RealnameCaptchaGTRegisterValidate(c context.Context, challenge, seccode, clientType, ip, captchaID string, mid int64) (realSeccode string, err error)

RealnameCaptchaGTRegisterValidate recheck the challenge code and get to seccode

func (*Dao) SetAlipayAntispam

func (d *Dao) SetAlipayAntispam(c context.Context, mid int64, value *AlipayAntispamValue) (err error)

SetAlipayAntispam set alipay antispam count by mid

func (*Dao) TelInfo

func (d *Dao) TelInfo(c context.Context, mid int64) (tel string, err error)

TelInfo tel info.

Jump to

Keyboard shortcuts

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