diff --git a/back-end/www/bp_api/views/secret.py b/back-end/www/bp_api/views/secret.py index 8e47551..0e3a73e 100644 --- a/back-end/www/bp_api/views/secret.py +++ b/back-end/www/bp_api/views/secret.py @@ -14,7 +14,6 @@ def dispatch_request(self): db = SecretDbController() now = datetime.now() # 获取当前日期和时间 formatted_date = now.strftime('%Y%m%d') # 格式化日期 - print("当前日期是:", formatted_date) if(type == 'get'): # 获取 data = db.getSecret(formatted_date) return_dict['status'] = '0' diff --git a/front-end/src/pages/SecretPage.vue b/front-end/src/pages/SecretPage.vue index 5ca30c0..f8cfa8f 100644 --- a/front-end/src/pages/SecretPage.vue +++ b/front-end/src/pages/SecretPage.vue @@ -128,7 +128,6 @@ const date = today.getDate(); // 获取日期 const hour = today.getHours(); // 获取小时 let formattedDate = year + String(month).padStart(2, '0') + String(date).padStart(2, '0'); - formattedDate = '20240416' // 根据日期判断提示词 let type_words = start_words; if(formattedDate == '20240415') type_words = start_words_first;