[Bug fix][Enhance] Link Play Unlock Bug

- For Arcaea 6.12.0
- Support for "is_allow_marketing_email"
- Support for config "LOG_FOLDER_PATH" (Thanks to PR #234)
- Fix a bug about one song unlock bug in Link Play, due to wrong length of song unlock bytes.
This commit is contained in:
Lost-MSth
2026-01-29 23:33:00 +08:00
parent 8180eef856
commit bfb6a2ddda
10 changed files with 56 additions and 36 deletions

View File

@@ -34,6 +34,8 @@ def register():
device_id = request.form['device_id']
else:
device_id = 'low_version'
if 'is_allow_marketing_email' in request.form:
new_user.is_allow_marketing_email = request.form['is_allow_marketing_email'] == 'true'
ip = request.remote_addr
new_user.register(device_id, ip)
@@ -170,7 +172,7 @@ def sys_set(user_id, set_arg):
user.change_favorite_character(int(value))
else:
value = 'true' == value
if set_arg in ('is_hide_rating', 'max_stamina_notification_enabled', 'mp_notification_enabled'):
if set_arg in ('is_hide_rating', 'max_stamina_notification_enabled', 'mp_notification_enabled', 'is_allow_marketing_email'):
user.update_user_one_column(set_arg, value)
return success_return(user.to_dict())