mirror of
https://github.com/Lost-MSth/Arcaea-server.git
synced 2026-02-10 09:47:26 +08:00
Update to v2.6.6 without release
- Fix a bug about purchase discount - Fix a bug about database synchronization, which may make 'api_login' table empty - For Arcaea 3.8.8 - Update a logout api
This commit is contained in:
@@ -777,12 +777,12 @@ def change_purchase():
|
||||
discount_from = int(time.mktime(time.strptime(
|
||||
discount_from, "%Y-%m-%dT%H:%M"))) * 1000
|
||||
else:
|
||||
discount_from = None
|
||||
discount_from = -1
|
||||
if discount_to:
|
||||
discount_to = int(time.mktime(time.strptime(
|
||||
discount_to, "%Y-%m-%dT%H:%M"))) * 1000
|
||||
else:
|
||||
discount_to = None
|
||||
discount_to = -1
|
||||
except:
|
||||
error = '数据错误 Wrong data.'
|
||||
flash(error)
|
||||
|
||||
@@ -204,7 +204,7 @@ def update_database():
|
||||
update_one_table(c1, c2, 'user_role')
|
||||
update_one_table(c1, c2, 'power')
|
||||
update_one_table(c1, c2, 'role_power')
|
||||
update_one_table(c1, c2, 'api_auth')
|
||||
update_one_table(c1, c2, 'api_login')
|
||||
|
||||
update_one_table(c1, c2, 'user_char')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user