ryry-cli 2.97__tar.gz → 2.99__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {ryry_cli-2.97 → ryry_cli-2.99}/PKG-INFO +1 -1
- {ryry_cli-2.97 → ryry_cli-2.99}/ryry/constant.py +2 -2
- {ryry_cli-2.97 → ryry_cli-2.99}/ryry/store.py +2 -0
- {ryry_cli-2.97 → ryry_cli-2.99}/ryry/upload.py +4 -1
- {ryry_cli-2.97 → ryry_cli-2.99}/ryry_cli.egg-info/PKG-INFO +1 -1
- {ryry_cli-2.97 → ryry_cli-2.99}/setup.py +1 -1
- {ryry_cli-2.97 → ryry_cli-2.99}/LICENSE +0 -0
- {ryry_cli-2.97 → ryry_cli-2.99}/README.md +0 -0
- {ryry_cli-2.97 → ryry_cli-2.99}/ryry/__init__.py +0 -0
- {ryry_cli-2.97 → ryry_cli-2.99}/ryry/main.py +0 -0
- {ryry_cli-2.97 → ryry_cli-2.99}/ryry/ryry_server_socket.py +0 -0
- {ryry_cli-2.97 → ryry_cli-2.99}/ryry/ryry_service.py +0 -0
- {ryry_cli-2.97 → ryry_cli-2.99}/ryry/ryry_webapi.py +0 -0
- {ryry_cli-2.97 → ryry_cli-2.99}/ryry/ryry_widget.py +0 -0
- {ryry_cli-2.97 → ryry_cli-2.99}/ryry/script_template/__init__.py +0 -0
- {ryry_cli-2.97 → ryry_cli-2.99}/ryry/script_template/main.py +0 -0
- {ryry_cli-2.97 → ryry_cli-2.99}/ryry/script_template/run.py +0 -0
- {ryry_cli-2.97 → ryry_cli-2.99}/ryry/server_func.py +0 -0
- {ryry_cli-2.97 → ryry_cli-2.99}/ryry/task.py +0 -0
- {ryry_cli-2.97 → ryry_cli-2.99}/ryry/taskUtils.py +0 -0
- {ryry_cli-2.97 → ryry_cli-2.99}/ryry/utils.py +0 -0
- {ryry_cli-2.97 → ryry_cli-2.99}/ryry_cli.egg-info/SOURCES.txt +0 -0
- {ryry_cli-2.97 → ryry_cli-2.99}/ryry_cli.egg-info/dependency_links.txt +0 -0
- {ryry_cli-2.97 → ryry_cli-2.99}/ryry_cli.egg-info/entry_points.txt +0 -0
- {ryry_cli-2.97 → ryry_cli-2.99}/ryry_cli.egg-info/requires.txt +0 -0
- {ryry_cli-2.97 → ryry_cli-2.99}/ryry_cli.egg-info/top_level.txt +0 -0
- {ryry_cli-2.97 → ryry_cli-2.99}/setup.cfg +0 -0
|
@@ -141,6 +141,8 @@ def extend():
|
|
|
141
141
|
GLOBAL_EXT_JSON = json.dumps(read_data["extend"])
|
|
142
142
|
if len(GLOBAL_EXT_JSON) < 10:
|
|
143
143
|
_genExtend()
|
|
144
|
+
elif read_data.get("device_id", "") != read_data.get("deviceInfo", {}).get("device_id", ""):
|
|
145
|
+
_genExtend()
|
|
144
146
|
else:
|
|
145
147
|
_genExtend()
|
|
146
148
|
return GLOBAL_EXT_JSON
|
|
@@ -163,7 +163,10 @@ def getFirstSupportSubdomain():
|
|
|
163
163
|
def get_network_hash():
|
|
164
164
|
import socket
|
|
165
165
|
from hashlib import md5
|
|
166
|
-
|
|
166
|
+
try:
|
|
167
|
+
local_ip = socket.gethostbyname('localhost')
|
|
168
|
+
except socket.gaierror:
|
|
169
|
+
local_ip = '127.0.0.1' # 默认回退到 localhost 地址
|
|
167
170
|
return md5(local_ip.encode('utf-8')).hexdigest()
|
|
168
171
|
network_hash = get_network_hash()
|
|
169
172
|
def _getFirstSupportSubdomain():
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|