From 83790bed7243cd3821ce68290fcf42eb05f192d3 Mon Sep 17 00:00:00 2001 From: wuaho Date: Mon, 19 Jul 2021 20:17:23 +0800 Subject: [PATCH] shanhai --- settings.py | 4 ++-- user_view.sql | 2 +- 初始化事件表.sql | 2 +- 初始化用户表.sql | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/settings.py b/settings.py index 13c6fd6..d1b3c94 100644 --- a/settings.py +++ b/settings.py @@ -7,7 +7,7 @@ class Config: 'send_receive_timeout': 30} # 每个游戏不一样 游戏上报 kafka 主题 - SUBSCRIBE_TOPIC = 'test2' + SUBSCRIBE_TOPIC = 'shanhai' KAFKA_CONSUMER_CONF = { 'bootstrap_servers': ["192.168.0.30:9092", "192.168.0.71:9092", "192.168.0.229:9092"], @@ -15,7 +15,7 @@ class Config: 'auto_offset_reset': 'earliest', # 每个游戏不一样 - 'group_id': 'legu_group3' + 'group_id': 'shanhai_group' } # 游戏数据库名 GAME = 'shjy' diff --git a/user_view.sql b/user_view.sql index 791cba2..98357de 100644 --- a/user_view.sql +++ b/user_view.sql @@ -1,4 +1,4 @@ -create view shjy.user_view as select * +create view shanhai.user_view as select * from shjy.user order by `#reg_time` desc LIMIT 1 by `#account_id` \ No newline at end of file diff --git a/初始化事件表.sql b/初始化事件表.sql index e4e1d13..b677876 100644 --- a/初始化事件表.sql +++ b/初始化事件表.sql @@ -1,4 +1,4 @@ -create table shjy.event +create table shanhai.event ( `#ip` Nullable(IPv4), `#country` Nullable(String), diff --git a/初始化用户表.sql b/初始化用户表.sql index fb58433..6425344 100644 --- a/初始化用户表.sql +++ b/初始化用户表.sql @@ -1,4 +1,4 @@ -create table shjy.user +create table shanhai.user ( `#reg_time` DateTime('UTC'),