\app\common\library\smsDriver

短信通知模块驱动 Class driver

Summary

Methods
Properties
Constants
__construct()
sendSms()
getError()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
getEngineClass()
$config
$engine
$engineName
N/A

Properties

$config

$config : 

Type

$engine

$engine : 

Type

$engineName

$engineName : 

Type

Methods

__construct()

__construct(  $config) 

构造方法 Driver constructor.

Parameters

$config

Throws

\think\Exception

sendSms()

sendSms(  $msgType,   $templateParams, boolean  $isTest = false) : boolean

发送短信通知

Parameters

$msgType
$templateParams
boolean $isTest

Returns

boolean

getError()

getError() : mixed

获取错误信息

Returns

mixed

getEngineClass()

getEngineClass() : mixed

获取当前的存储引擎

Throws

\think\Exception

Returns

mixed