mirror of
https://github.com/MikuLeaks/KianaBH3.git
synced 2025-12-13 21:34:43 +01:00
9 lines
311 B
Python
9 lines
311 B
Python
import betterproto
|
|
from game_server.net.session import Session
|
|
from lib.proto import SyncTimeReq, SyncTimeRsp
|
|
from utils.time import get_unix_in_seconds
|
|
|
|
|
|
async def handle(session: Session, msg: SyncTimeReq) -> betterproto.Message:
|
|
return SyncTimeRsp(retcode=0, cur_time=get_unix_in_seconds(), seq=msg.seq)
|