\app\common\serviceMessage

消息通知服务 Class Message

Summary

Methods
Properties
Constants
payment()
delivery()
refund()
sharingActive()
withdraw()
dealer()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
sendTemplateMessage()
formatGoodsName()
No private properties found
N/A

Methods

payment()

payment(\think\Model  $order, integer  $orderType = \app\common\enum\OrderType::MASTER) : boolean

订单支付成功后通知

Parameters

\think\Model $order
integer $orderType

订单类型 (10商城订单 20拼团订单)

Throws

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

Returns

boolean

delivery()

delivery(\think\Model  $order, integer  $orderType = \app\common\enum\OrderType::MASTER) : boolean

后台发货通知

Parameters

\think\Model $order
integer $orderType

订单类型 (10商城订单 20拼团订单)

Throws

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

Returns

boolean

refund()

refund(\think\Model  $refund,   $order_no, integer  $orderType = \app\common\enum\OrderType::MASTER) : boolean

后台售后单状态通知

Parameters

\think\Model $refund
$order_no
integer $orderType

订单类型 (10商城订单 20拼团订单)

Throws

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

Returns

boolean

sharingActive()

sharingActive(\app\common\model\sharing\Active  $active, string  $status_text) : boolean

拼团拼单状态通知

Parameters

\app\common\model\sharing\Active $active
string $status_text

Throws

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

Returns

boolean

withdraw()

withdraw(\app\common\model\dealer\Withdraw  $withdraw) : boolean

分销商提现审核通知

Parameters

\app\common\model\dealer\Withdraw $withdraw

Throws

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

Returns

boolean

dealer()

dealer(\app\common\model\dealer\Apply  $dealer) : boolean

分销商入驻审核通知

Parameters

\app\common\model\dealer\Apply $dealer

Throws

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

Returns

boolean

sendTemplateMessage()

sendTemplateMessage(  $wxappId,   $params) : boolean

发送模板消息

Parameters

$wxappId
$params

Throws

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

Returns

boolean

formatGoodsName()

formatGoodsName(  $goodsData) : string

格式化商品名称

Parameters

$goodsData

Returns

string