diff --git a/app/Amqp/Consumer/SendStationMessageConsumer.php b/app/Amqp/Consumer/SendStationMessageConsumer.php index 4a0efe2..276bd46 100644 --- a/app/Amqp/Consumer/SendStationMessageConsumer.php +++ b/app/Amqp/Consumer/SendStationMessageConsumer.php @@ -71,7 +71,7 @@ class SendStationMessageConsumer extends ConsumerMessage $cloud_custom_data = array(); $cloud_custom_data['order_inquiry_id'] = ""; $cloud_custom_data['is_system'] = 1; - $cloud_custom_data['inquiry_type'] = ""; + $cloud_custom_data['inquiry_type'] = $data['inquiry_type'] ?? ""; $cloud_custom_data['message_rounds'] = 0; $cloud_custom_data['patient_family_data'] = []; diff --git a/app/Model/MessageNotice.php b/app/Model/MessageNotice.php index 9d0a251..cbe5e4a 100644 --- a/app/Model/MessageNotice.php +++ b/app/Model/MessageNotice.php @@ -15,6 +15,7 @@ use Hyperf\Snowflake\Concern\Snowflake; * @property int $user_type 用户类型(1:患者端 2:医师端 3:药师端) * @property int $notice_type 消息类型(1:医生服务通知 2:医生系统公告 3:患者系统消息) * @property int $notice_system_type 系统消息类型(患者端系统消息存在 1:服务消息 2:福利消息 3:退款消息 4:物流消息) + * @property int $inquiry_type 问诊类型(医生端服务通知存在 1:专家问诊 2:快速问诊 3:公益问诊 4:问诊购药) * @property int $read_status 读取状态(0:未读 1:已读) * @property string $from_name 发送人姓名 * @property string $notice_brief_title 缩略消息标题(列表页展示) @@ -43,7 +44,7 @@ class MessageNotice extends Model /** * The attributes that are mass assignable. */ - protected array $fillable = ['notice_id', 'user_id', 'user_type', 'notice_type', 'notice_system_type', 'read_status', 'from_name', 'notice_brief_title', 'notice_title', 'notice_send_time', 'notice_content', 'send_status', 'send_fail_reason', 'button_type', 'link_type', 'link_params', 'show_type', 'show_params', 'created_at', 'updated_at']; + protected array $fillable = ['notice_id', 'user_id', 'user_type', 'notice_type', 'notice_system_type', 'inquiry_type', 'read_status', 'from_name', 'notice_brief_title', 'notice_title', 'notice_send_time', 'notice_content', 'send_status', 'send_fail_reason', 'button_type', 'link_type', 'link_params', 'show_type', 'show_params', 'created_at', 'updated_at']; protected string $primaryKey = "notice_id";