\app\store\service\wxappMessage

推送模板消息服务类 Class Message

Summary

Methods
Properties
Constants
__construct()
send()
getStateSet()
No public properties found
SEPARATOR
No protected methods found
No protected properties found
N/A
sendTemplateMessage()
recordState()
$stateSet
$WxTplMsg
N/A

Constants

SEPARATOR

SEPARATOR = ','

Properties

$stateSet

$stateSet : array

Type

array — 状态集

Methods

__construct()

__construct() 

构造方法 Message constructor.

Throws

\app\common\exception\BaseException
\think\exception\DbException

send()

send(  $data) : boolean

Parameters

$data

Throws

\app\common\exception\BaseException
\think\exception\DbException

Returns

boolean

getStateSet()

getStateSet() : array

获取状态集

Returns

array

sendTemplateMessage()

sendTemplateMessage(  $userId,   $data) : boolean

发送模板消息

Parameters

$userId
$data

Throws

\app\common\exception\BaseException
\think\exception\DbException

Returns

boolean

recordState()

recordState(  $content) 

记录状态集

Parameters

$content