初步MQ 备注

This commit is contained in:
2025-10-14 15:27:18 +08:00
parent d2a46c4738
commit d0588895b5
11 changed files with 75 additions and 11 deletions

View File

@@ -18,8 +18,8 @@ use support\Log;
class RabbOrderPrint extends Command
{
protected static $defaultName = 'RabbOrderPrint';
protected static $defaultDescription = 'RabbOrderPrint';
protected static $defaultName = 'rabborderprint';
protected static $defaultDescription = 'rabborderprint';
/**
* @return void
@@ -64,7 +64,7 @@ class RabbOrderPrint extends Command
$callback = function ($msg) use ($queue){
$date_time = date('Y-m-d H:i:s');
$data = $msg->body;
Log::info('收到消息--->' . $data . '--->' . $date_time . "\n");
Log::info('MQ收到消息[订单打印]--->' . $data . '--->' . $date_time . "\n");
// 如果是数字。则打印订单
$is_log = false;
$curl_error = '';