Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/accelerator-s/SJTURunningMan_Revise_Edition
/ functions
Functions
66 in github.com/accelerator-s/SJTURunningMan_Revise_Edition
⨍
Functions
66
◇
Types & classes
7
↓ 31 callers
Function
log_output
统一日志输出:可传入 UI 回调,否则打印到控制台。 level 支持 'info'、'warning'、'error'。
utils/auxiliary_util.py:34
↓ 9 callers
Method
log_output_text
(self, message, level="info")
qtui.py:509
↓ 7 callers
Function
re_search
(retext, text)
utils/auxiliary_util.py:11
↓ 6 callers
Function
haversine_distance
计算两点之间的 Haversine 距离,返回米为单位的浮点数。
utils/auxiliary_util.py:52
↓ 4 callers
Function
_is_2fa_page
检测是否为二次验证页面
src/login.py:79
↓ 4 callers
Function
make_request
HTTP请求封装
src/api_client.py:6
↓ 3 callers
Function
_send_2fa_code
发送二次验证码
src/login.py:86
↓ 3 callers
Function
_take_partial
沿路线取指定距离的部分坐标
src/data_generator.py:65
↓ 3 callers
Function
get_base_path
获取应用程序基础路径:如果已打包(frozen),返回 exe 所在目录,否则返回项目根目录。
utils/auxiliary_util.py:22
↓ 2 callers
Function
_handle_2fa
处理异地登录二次验证。 two_fa_cb 需提供: select_method() -> 'app'/'email'/'sms' 或 None(取消) get_code() -> 6位验证码 或 'r'(重发) 或 None(取消) show_
src/login.py:109
↓ 2 callers
Method
adjust_content_width
(self, window_width)
qtui.py:327
↓ 2 callers
Method
create_confetti_burst
在指定位置创建一波彩带
src/info_dialog.py:270
↓ 2 callers
Function
generate_running_data_payload
生成跑步数据
src/data_generator.py:215
↓ 2 callers
Function
route_total_distance
计算路线总长度(米)
src/data_generator.py:55
↓ 1 callers
Method
__init__
(self, config_data)
qtui.py:30
↓ 1 callers
Method
__init__
(self, parent=None)
src/info_dialog.py:184
↓ 1 callers
Function
_create_session
()
src/login.py:41
↓ 1 callers
Function
_get_captcha
(session, captcha_url)
src/login.py:55
↓ 1 callers
Function
_get_login_page
(session, url)
src/login.py:50
↓ 1 callers
Function
_identify_captcha
()
src/login.py:63
↓ 1 callers
Function
_post_login_request
(session, login_page, username, password, captcha_code)
src/login.py:163
↓ 1 callers
Function
_verify_2fa_code
提交二次验证码并返回 errno
src/login.py:97
↓ 1 callers
Function
build_path_for_distance
循环路线坐标直到达到目标距离
src/data_generator.py:93
↓ 1 callers
Method
center_window
(self)
qtui.py:332
↓ 1 callers
Function
densify_route
在相邻坐标点之间按距离间隔插入中间点,增加轨迹密度
src/data_generator.py:29
↓ 1 callers
Function
get_authorization_token_and_rules
获取认证令牌和跑步规则
src/api_client.py:60
↓ 1 callers
Function
get_current_epoch_ms
返回当前 Unix epoch 毫秒整数。
utils/auxiliary_util.py:65
↓ 1 callers
Function
get_jalogin_from_authorize
访问 /oauth2/authorize 获取 jalogin URL
src/login.py:18
↓ 1 callers
Method
get_settings_from_ui
从UI获取当前配置
qtui.py:344
↓ 1 callers
Function
get_timestamp
返回当前时间的毫秒字符串表示。
utils/auxiliary_util.py:16
↓ 1 callers
Method
init_ui
(self)
qtui.py:251
↓ 1 callers
Function
qInitResources
()
assets/resources_rc.py:24750
↓ 1 callers
Function
read_route_from_file
从文件读取路线坐标,每行格式:经度,纬度
src/data_generator.py:8
↓ 1 callers
Method
retranslateUi
(self, HelpWindow)
src/info_dialog.py:120
↓ 1 callers
Function
run_sports_upload
(config, progress_callback=None, log_cb=None, stop_check_cb=None)
src/main.py:8
↓ 1 callers
Method
setupUi
(self, HelpWindow)
src/info_dialog.py:29
↓ 1 callers
Method
setup_ui_style
(self)
qtui.py:92
↓ 1 callers
Function
split_track_into_segments
将轨迹点拆分为多个轨迹段
src/data_generator.py:143
↓ 1 callers
Function
upload_running_data
上传跑步数据
src/api_client.py:134
Method
_2fa_get_code
二次验证:获取用户输入的验证码
qtui.py:404
Method
_2fa_select_method
二次验证:让用户选择验证方式
qtui.py:366
Method
_2fa_show_message
二次验证:显示提示信息
qtui.py:442
Method
__init__
(self)
qtui.py:66
Method
__init__
(self, parent=None)
src/info_dialog.py:131
Method
__init__
(self, pos, velocity, color, size, angular_velocity)
src/info_dialog.py:166
Method
_on_help_destroyed
()
qtui.py:598
Method
closeEvent
处理窗口关闭事件,确保主窗口恢复可关闭状态
src/info_dialog.py:208
Method
eventFilter
(self, watched, event)
qtui.py:618
Method
init_confetti_animation
初始化并启动彩带动画
src/info_dialog.py:264
Method
log_callback
(self, message, level)
qtui.py:61
Function
login
(username, password, two_fa_cb=None)
src/login.py:180
Method
on_ok_clicked
点击确定按钮时,隐藏窗口并恢复主窗口的关闭功能
src/info_dialog.py:219
Method
paintEvent
只在这个遮罩层上绘制彩带
src/info_dialog.py:138
Method
paintEvent
(self, event)
src/info_dialog.py:320
Method
progress_callback
(self, current, total, message)
qtui.py:58
Function
qCleanupResources
()
assets/resources_rc.py:24753
Method
resizeEvent
(self, event)
qtui.py:323
Method
resizeEvent
窗口大小改变时,确保遮罩层也同步改变大小
src/info_dialog.py:257
Method
run
(self)
qtui.py:34
Method
showEvent
窗口显示时,重置并启动彩带动画
src/info_dialog.py:250
Method
show_info_dialog
(self)
qtui.py:565
Method
start_upload
(self)
qtui.py:446
Method
stop_upload
(self)
qtui.py:494
Method
update_animation
更新粒子状态
src/info_dialog.py:298
Method
update_progress
(self, current, total, message)
qtui.py:504
Method
upload_finished
(self, success, message)
qtui.py:545