修改库存
This commit is contained in:
@@ -9,7 +9,7 @@ use Hyperf\Amqp\Annotation\Producer;
|
||||
use Hyperf\Amqp\Message\ProducerMessage;
|
||||
|
||||
/**
|
||||
* 发送订阅消息
|
||||
* 订阅消息推送
|
||||
*/
|
||||
#[Producer(exchange: 'amqp.direct', routingKey: 'SendSubMessage')]
|
||||
class SendSubMessageProducer extends ProducerMessage
|
||||
@@ -17,18 +17,25 @@ class SendSubMessageProducer extends ProducerMessage
|
||||
/**
|
||||
* @param array $data
|
||||
* [
|
||||
* "push_user_id" // 用户id(被推送者)
|
||||
* "template_title" // 推送的模版名称
|
||||
* "params" => [ // 推送所需的参数
|
||||
* "page" // 跳转页面
|
||||
* "data" => [
|
||||
* "thing1" => [
|
||||
* "value" => [
|
||||
* "参数1"
|
||||
* ]
|
||||
* "sub_data" => [
|
||||
* "push_user_id" // 用户id(被推送者)
|
||||
* "template_title" // 推送的模版名称
|
||||
* "send_reason" // 发送原因
|
||||
* "params" => [ // 推送所需的参数
|
||||
* "page" // 跳转页面
|
||||
* "data" => [
|
||||
* "key1" => "value1" // 入参数据结构
|
||||
* ]
|
||||
* ]
|
||||
*
|
||||
* ],
|
||||
* ]
|
||||
* "sms_data" => [ // 短信所需的参数,如订阅发送失败需发送短信
|
||||
* "template_code" => "SMS_123",
|
||||
* "template_param" => [
|
||||
* // 参数不确定,主要看短信模版的不同
|
||||
* ],
|
||||
* "scene_desc" => "场景描述",
|
||||
* "phone" => "手机号",
|
||||
* "user_id" => "用户id(被推送者)"
|
||||
* ]
|
||||
* ]
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user