This commit is contained in:
aozhiwei 2020-11-02 19:46:13 +08:00
parent 5ae33a0bcc
commit 061ffefd68
4 changed files with 10 additions and 2 deletions

6
.gitmodules vendored
View File

@ -4,3 +4,9 @@
[submodule "third_party/q5"] [submodule "third_party/q5"]
path = third_party/q5 path = third_party/q5
url = git@git.kingsome.cn:server_common/q5.git url = git@git.kingsome.cn:server_common/q5.git
[submodule "third_party/f7"]
path = third_party/f7
url = git@git.kingsome.cn:server_common/f7.git
[submodule "third_party/q7"]
path = third_party/q7
url = git@git.kingsome.cn:server_common/q7.git

View File

@ -14,7 +14,7 @@ CONFIG_DIR = '../config' if f7.isOnlineEnv() else '/var/data/conf_test/loginserv
def __loginGoogleAuth(request): def __loginGoogleAuth(request):
try: try:
client_id = request.get_argument('client', '') client_id = request.get_argument('client_id', '')
token = request.get_argument('token', '') token = request.get_argument('token', '')
idinfo = id_token.verify_oauth2_token(token, requests.Request(), client_id) idinfo = id_token.verify_oauth2_token(token, requests.Request(), client_id)
return json.dumps({ return json.dumps({
@ -43,7 +43,7 @@ if __name__ == "__main__":
f7.app.init('/data/logs/loginserver_be/logs') f7.app.init('/data/logs/loginserver_be/logs')
f7.udplog.info('loginserver_be start pid:' + str(os.getpid())) f7.udplog.info('loginserver_be start pid:' + str(os.getpid()))
conf = json.loads(open(CONFIG_DIR + '/loginserver_be.json', 'r').read()) conf = json.loads(open(CONFIG_DIR + '/loginserver_be.cluster.json', 'r').read())
f7.app.registerHandler('Login', 'auth', __loginAuth) f7.app.registerHandler('Login', 'auth', __loginAuth)
f7.app.listen(conf['listen_port']) f7.app.listen(conf['listen_port'])

1
third_party/f7 vendored Submodule

@ -0,0 +1 @@
Subproject commit d84f1162556e1703d71a203cc2985d61bafea32e

1
third_party/q7 vendored Submodule

@ -0,0 +1 @@
Subproject commit 4af43d56490d566c38021d9687975dae17d9e7ad