购物车reload标识
This commit is contained in:
@@ -27,7 +27,7 @@ class Base extends Model
|
|||||||
// 分组推送(广播)
|
// 分组推送(广播)
|
||||||
public static function gateway_query(string $method, array $params, bool $by_shop_id = false)
|
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;
|
list($clientIdOrUid, $data) = $params;
|
||||||
$data_arr = json_decode($data, true);
|
$data_arr = json_decode($data, true);
|
||||||
|
|||||||
@@ -184,6 +184,8 @@ class Events
|
|||||||
// 只在初始化的时候绑定
|
// 只在初始化的时候绑定
|
||||||
if(!empty($message['operate_type']) && $message['operate_type'] == 'init') {
|
if(!empty($message['operate_type']) && $message['operate_type'] == 'init') {
|
||||||
// 添加在线客户端数量
|
// 添加在线客户端数量
|
||||||
|
Log::info('绑定->>>>>'.$client_id);
|
||||||
|
|
||||||
Base::add_total_number($client_id, $type);
|
Base::add_total_number($client_id, $type);
|
||||||
if(!empty($message['shop_id'])) {
|
if(!empty($message['shop_id'])) {
|
||||||
if(!empty($message['table_code'])) {
|
if(!empty($message['table_code'])) {
|
||||||
|
|||||||
Reference in New Issue
Block a user