This commit is contained in:
wuaho 2021-07-19 20:17:23 +08:00
parent 76c25d994c
commit 83790bed72
4 changed files with 5 additions and 5 deletions

View File

@ -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'

View File

@ -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`

View File

@ -1,4 +1,4 @@
create table shjy.event
create table shanhai.event
(
`#ip` Nullable(IPv4),
`#country` Nullable(String),

View File

@ -1,4 +1,4 @@
create table shjy.user
create table shanhai.user
(
`#reg_time` DateTime('UTC'),