上菜状态推送
This commit is contained in:
@@ -37,16 +37,17 @@ use support\Redis;
|
||||
$date_time = date('Y-m-d H:i:s');
|
||||
$data = $msg->body;
|
||||
Log::info('MQ收到消息[商品状态更新]--->' . $data . '--->' . $date_time . "\n");
|
||||
$datInfo= json_decode($data, true);
|
||||
// 如果是数字。则打印订单
|
||||
$is_log = false;
|
||||
$curl_error = '';
|
||||
$rand = 'product_update' . Random::build();
|
||||
$send_id = 'cart_update' . $data . '_all' ;
|
||||
$send_id = 'cart_update' . $datInfo['shopId'] . '_all' ;
|
||||
$snd_data =[
|
||||
'msg' => '购物车刷新',
|
||||
'operate_type' => 'reload',
|
||||
'msg_id' => $rand,
|
||||
'type' => 'bc',
|
||||
'type' => $datInfo['type'],
|
||||
'data_type' => 'cart',
|
||||
'status' => 1
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user