| | |
| | | return |
| | | frpc_conf_path = os.path.join(BASE_DIR, "network", "sening_vdp2.toml") |
| | | if not os.path.exists(frpc_conf_path): |
| | | pass |
| | | return |
| | | |
| | | with open(frpc_conf_path, 'r', encoding='utf-8') as f: |
| | | lines = f.readlines() |
| | |
| | | result = response.json() |
| | | if not result.get('success'): |
| | | print("❌ 服务器返回,请联系管理员处理.") |
| | | else: |
| | | pass |
| | | |
| | | def login(self): |
| | | username = self.username_entry.get().strip() |
| | |
| | | REMOTE_SERVER_URL = tmp_config.get("REMOTE_SERVER_URL",REMOTE_SERVER_URL) |
| | | PROXY_SERVER_URL_PREFIX = tmp_config.get("PROXY_SERVER_URL_PREFIX",PROXY_SERVER_URL_PREFIX) |
| | | except Exception as e: |
| | | print(f"{e}") |
| | | pass |
| | | |
| | | print(f"{e}") |
| | | |
| | | def runnetwork_exe(): |
| | | try: |
| | |
| | | ) |
| | | except Exception as e: |
| | | print(f"{e}") |
| | | pass |
| | | |
| | | def add_to_startup(): |
| | | # 获取当前用户名和路径 |