\eapie\source\plugin\aliyun\dysmsdysms

Summary

Methods
Properties
Constants
__construct()
client()
send()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
_error()
_response()
$_access_key
$_secret_key
$_acs_client
N/A

Properties

$_access_key

$_access_key : string

AccessKey ID

Type

string

$_secret_key

$_secret_key : string

AccessKey Secret

Type

string

$_acs_client

$_acs_client : 

储存AcsClient

Type

Methods

__construct()

__construct() 

send()

send(  $config) : \eapie\source\plugin\aliyun\dysms\stdClass

发送短信 $config = array( "phone_numbers"=>,//接收的手机号码 "template_param"=>, //模板的替换参数,短信模板中字段的值 "sign_name"=> //短信签名 "template_code"=> //模板CODE "out_id"=> //流水号 "sms_up_extend_code"=> //上行短信扩展码(扩展码字段控制在7位或以下,无特殊需求用户请忽略此字段) )

Parameters

$config

Returns

\eapie\source\plugin\aliyun\dysms\stdClass

_error()

_error(integer  $errno, string  $message = '') : array

错误提示

Parameters

integer $errno

错误码

string $message

附加的错误信息

Returns

array

_response()

_response(array  $acs_response) : array

响应数据

$acs_response->Message = "";//消息 $acs_response->RequestId = "";//响应ID,排查问题使用 $acs_response->Code = ""; $acs_response->BizId = "";//通过 BizId 查询当前这条短信信息(解决用session存验证码,后期增加服务器压力问题)

Parameters

array $acs_response

Returns

array