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)