feat: add offer reward claim workflow

This commit is contained in:
admin committed 2026-10-04 17:58:53 +08:00
1 parent 870ca82e8a
commit b6bd78dc66
25 files changed
+1028 -5

No files matched your search

+15
View File
@@ -0,0 +1,15 @@
"""Read-only permission checks; never open prompts or change system settings."""
import ctypes
import sys
def mouse_permission_granted():
if sys.platform != 'darwin':
return True
framework = ctypes.CDLL('/System/Library/Frameworks/ApplicationServices.framework/ApplicationServices')
framework.AXIsProcessTrusted.restype = ctypes.c_bool
return bool(framework.AXIsProcessTrusted())
if __name__ == '__main__':
print('辅助功能权限已授予' if mouse_permission_granted() else '辅助功能权限未授予')