2024-04-12 00:56:58 +08:00
|
|
|
from .Session_client import *
|
2024-04-13 01:40:25 +08:00
|
|
|
from .Database_formula import *
|
2024-04-12 00:56:58 +08:00
|
|
|
|
|
|
|
|
2024-04-13 01:40:25 +08:00
|
|
|
class Server_main(link_client, database):
|
2024-04-12 00:56:58 +08:00
|
|
|
def __init__(self):
|
|
|
|
link_client.__init__(self)
|
2024-04-13 01:40:25 +08:00
|
|
|
database.__init__(self)
|
2024-04-12 00:56:58 +08:00
|
|
|
|
2024-04-13 01:40:25 +08:00
|
|
|
def pick_data(self, data):
|
|
|
|
account_state = None
|
|
|
|
if data['genre'] == '登录':
|
|
|
|
account_state = self.check_account_state(data['data']['account'], data['data']['password'])
|
|
|
|
return {"state": account_state, "user": data['data']['account']}
|
|
|
|
elif data['genre'] == '注册':
|
|
|
|
pass
|