初步MQ 备注
This commit is contained in:
@@ -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 = '';
|
||||
|
||||
Reference in New Issue
Block a user