This commit is contained in:
2025-01-14 17:16:12 +08:00
parent f3bcc71ced
commit 4c3d157234
2 changed files with 67 additions and 5 deletions
+4 -3
View File
@@ -10,12 +10,13 @@ from flask_cors import CORS
from src.My_Logger.project_logger import LoggerClass
from src.ark_helper_backend.backend import ArkHelperBackend
from src.util.mail import send_batch_email
from src.util.mail import send_batch_email, new_send_email
from src.util.utils import random_time
app = Flask(__name__)
CORS(app, supports_credentials=True)
admin_key = '1145141919810'
target_email_list = ['ArmorServer@outlook.com']
@app.route("/GetCurrentStatus", methods=["POST"])
@@ -102,7 +103,7 @@ def data_retrieve_thread():
except Exception as e:
print(e, traceback.format_exc())
ark_back.logger.error(traceback.format_exc())
send_batch_email(['2654988228@qq.com'], 'Error in ArkHelper data retrieval', str(traceback.format_exc()))
new_send_email(target_email_list, 'Error in ArkHelper data retrieval', str(traceback.format_exc()))
finally:
ark_back.logger.info('Data Retrieve Stopped')
@@ -123,7 +124,7 @@ def skland_sign_in_thread():
except Exception as e:
print(e, traceback.format_exc())
ark_back.logger.error(traceback.format_exc())
send_batch_email(['2654988228@qq.com'], 'Error in ArkHelper Skland Sign-in', str(traceback.format_exc()))
new_send_email(target_email_list, 'Error in ArkHelper Skland Sign-in', str(traceback.format_exc()))
finally:
ark_back.logger.info('Data Retrieve Stopped')