购物车reload标识

This commit is contained in:
张松
2025-11-28 15:44:19 +08:00
parent 0c41ec879d
commit 116b768aa7
2 changed files with 3 additions and 1 deletions

View File

@@ -27,7 +27,7 @@ class Base extends Model
// 分组推送(广播)
public static function gateway_query(string $method, array $params, bool $by_shop_id = false)
{
Log::info('消息->>>>>');
Log::info('消息->>>>>'.json_encode($params));
list($clientIdOrUid, $data) = $params;
$data_arr = json_decode($data, true);

View File

@@ -184,6 +184,8 @@ class Events
// 只在初始化的时候绑定
if(!empty($message['operate_type']) && $message['operate_type'] == 'init') {
// 添加在线客户端数量
Log::info('绑定->>>>>'.$client_id);
Base::add_total_number($client_id, $type);
if(!empty($message['shop_id'])) {
if(!empty($message['table_code'])) {