utils

package
v0.0.0-...-6e4d488 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2023 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateCaptcha

func CreateCaptcha() string

6位随机数

func CreateClient

func CreateClient(accessKeyId *string, accessKeySecret *string) (_result *dysmsapi20170525.Client, _err error)

---------阿里云短信SDK------------ *

  • 使用AK&SK初始化账号Client
  • @param accessKeyId
  • @param accessKeySecret
  • @return Client
  • @throws Exception

func CreateClientWithSTS

func CreateClientWithSTS(accessKeyId *string, accessKeySecret *string, securityToken *string) (_result *dysmsapi20170525.Client, _err error)

* * 使用STS鉴权方式初始化账号Client,推荐此方式。本示例默认使用AK&SK方式。 * @param accessKeyId * @param accessKeySecret * @param securityToken * @return Client * @throws Exception

func Httppost

func Httppost(mobile string, code string) bool

发送手机验证码 华为短信

func IsMobile

func IsMobile(mobile string) bool

识别手机号码

func Md5

func Md5(src string) string

md5加密

func Send

func Send(mobile string, code string) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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