Files
douyin_guaji-main/douyin/other/douyin_guaji.py
T
Your Name c67f22f76f feat: Refactor and reorganize project structure with new modules and files
- Deleted obsolete files including test scripts and configuration files to streamline the project.
- Introduced new modules for handling Douyin functionalities, including core operations, logging, and GUI components.
- Updated import paths to reflect the new module structure, enhancing code organization and maintainability.
- Added configuration files and documentation to support the new structure and improve user guidance.
2025-12-28 14:16:40 +08:00

26 lines
842 B
Python

from douyin.core.douyin_fudai import fudai_analyse
try:
from version import print_version_banner
except Exception:
print_version_banner = None
class fudai_guaji:
def __init__(self):
self.analyser = fudai_analyse()
def guaji(self, y_pianyi=0):
"""y_pianyi 对应y轴高度的偏移值"""
device_id = self.analyser.operation.select_device()
if device_id:
self.analyser.fudai_choujiang(device_id, y_pianyi, True, 5)
return True
self.analyser.operation.delay(10)
self.guaji(y_pianyi)
if __name__ == '__main__':
if print_version_banner is not None and callable(print_version_banner):
print_version_banner("douyin_guaji")
choujiang = fudai_guaji()
choujiang.guaji(0) # 运行只需改这里的0,对应是你手机纵轴y的偏移值