\app\common\service\message\sharingActiveStatus

消息通知服务 [拼团进度] Class ActiveStatus

Summary

Methods
Properties
Constants
send()
getError()
hasError()
No public properties found
No constants found
sendSms()
sendWxSubMsg()
getSubstr()
$param
$error
$wxappId
N/A
onSendWxSubMsg()
No private properties found
N/A

Properties

$param

$param : array

参数列表

Type

array

$error

$error : 

Type

$wxappId

$wxappId : 

Type

Methods

send()

send(array  $param) : mixed|void

发送消息通知

Parameters

array $param

参数

Throws

\think\Exception

Returns

mixed|void

getError()

getError() : mixed

获取错误信息

Returns

mixed

hasError()

hasError() : boolean

是否存在错误

Returns

boolean

sendSms()

sendSms(  $msgType,   $templateParams,   $wxappId) : boolean

发送短信提醒

Parameters

$msgType
$templateParams
$wxappId

Throws

\think\Exception

Returns

boolean

sendWxSubMsg()

sendWxSubMsg(  $wxappId,   $params) : mixed

发送微信订阅消息

Parameters

$wxappId
$params

Throws

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

Returns

mixed

getSubstr()

getSubstr(  $content, integer  $length = 20) : boolean|string

字符串截取前20字符 [用于兼容thing数据类型]

Parameters

$content
integer $length

Returns

boolean|string

onSendWxSubMsg()

onSendWxSubMsg() : boolean

微信订阅消息通知用户

Throws

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

Returns

boolean