Skip to content

Commit

Permalink
fix: 隐藏手机号中间 4 位
Browse files Browse the repository at this point in the history
Github Actions Job 的日志中会显示明文手机号,建议还是隐藏部分字段
  • Loading branch information
Jaxx4Fun committed Feb 23, 2024
1 parent 59ccef0 commit 9499238
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions process.py
Original file line number Diff line number Diff line change
Expand Up @@ -261,8 +261,8 @@ def reservation(params: dict, mobile: str):
# if responses.status_code == 401:
# send_msg('!!失败!!茅台预约', f'[{mobile}],登录token失效,需要重新登录')
# raise RuntimeError

msg = f'预约:{mobile};Code:{responses.status_code};Body:{responses.text};'
shadow_mobile = mobile[:3]+'****'+mobile[-4:]
msg = f'预约:{shadow_mobile};Code:{responses.status_code};Body:{responses.text};'
logging.info(msg)

# 如果是成功,推送消息简化;失败消息则全量推送
Expand Down

0 comments on commit 9499238

Please sign in to comment.