security

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	*kernel.BaseClient
}

func RegisterProvider

func RegisterProvider(app kernel.ApplicationInterface) (*Client, error)

func (*Client) ImgSecCheck

func (comp *Client) ImgSecCheck(path string, form *power.HashMap) (*response2.ResponseMiniProgram, error)

向插件开发者发起使用插件的申请 https://developers.weixin.qq.com/miniprogram/dev/framework/security.imgSecCheck.html

func (*Client) MediaCheckAsync

func (comp *Client) MediaCheckAsync(mediaURL string, mediaType int, version int, openID string, scene int) (*response.ResponseSecurityMediaCheckASync, error)

异步校验图片/音频是否含有违法违规内容 https://developers.weixin.qq.com/miniprogram/dev/framework/security.mediaCheckAsync-v1.html#请求地址

func (*Client) MsgSecCheck

func (comp *Client) MsgSecCheck(
	openID string, scene int, version int, content string,
	nickname string, title string, signature string) (*response.ResponseSecurityMsgCheckASync, error)

检查一段文本是否含有违法违规内容 https://developers.weixin.qq.com/miniprogram/dev/framework/security.msgSecCheck-v1.html#HTTPS%20调用

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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