From c121603686d9b364f90f633419e19bb44e29d922 Mon Sep 17 00:00:00 2001 From: mkm <727897186@qq.com> Date: Sat, 25 May 2024 15:42:59 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=97=A5=E5=BF=97=E8=AE=B0?= =?UTF-8?q?=E5=BD=95=E4=BB=A5=E8=B7=9F=E8=B8=AA=E6=89=93=E5=8D=B0=E6=8E=A8?= =?UTF-8?q?=E9=80=81=E7=9A=84=E5=BC=80=E5=A7=8B=E5=92=8C=E7=BB=93=E6=9D=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/queue/redis/PushPlatformPrintSend.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/queue/redis/PushPlatformPrintSend.php b/app/queue/redis/PushPlatformPrintSend.php index 7334e61..084c6b6 100644 --- a/app/queue/redis/PushPlatformPrintSend.php +++ b/app/queue/redis/PushPlatformPrintSend.php @@ -32,6 +32,7 @@ class PushPlatformPrintSend implements Consumer public function consume($data) { $id=$data['order_id']??0; + Log::info('打印推送开始'.$id); if(!$id)return false; $find = Cashierclass::where('id', $id)->where('is_print',0)->field('id,merchant,real_name,user_phone,user_address,uid,number,total,actual,create_time')->find(); if ($find) { @@ -51,6 +52,8 @@ class PushPlatformPrintSend implements Consumer return $item; }); PushService::push('platform_1', 1, ['type'=>'platform_print','msg'=>'打印队列','data'=>$find]); + Log::info('打印推送结束'.$id); + } } public function onConsumeFailure(\Throwable $exception, $package)