Skip to content

Commit

Permalink
update: del some unnecessary.
Browse files Browse the repository at this point in the history
  • Loading branch information
Horbin-Magician committed Apr 15, 2024
1 parent e45d747 commit 97937b6
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion back-end/www/bp_api/views/secret.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
1 change: 0 additions & 1 deletion front-end/src/pages/SecretPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 97937b6

Please sign in to comment.