新api配置
This commit is contained in:
parent
0fe8a37050
commit
8f30ad7e5b
24
ips.txt
24
ips.txt
@ -1,4 +1,20 @@
|
||||
172.29.119.27
|
||||
172.30.8.119
|
||||
172.29.119.29
|
||||
172.29.119.24
|
||||
192.168.11.13
|
||||
192.168.11.15
|
||||
172.18.105.21
|
||||
172.18.104.29
|
||||
172.18.103.34
|
||||
172.18.104.14
|
||||
172.18.102.18
|
||||
172.18.106.33
|
||||
172.18.101.23
|
||||
172.18.101.17
|
||||
172.18.103.14
|
||||
172.18.103.15
|
||||
172.18.100.12
|
||||
172.18.100.22
|
||||
172.18.100.17
|
||||
172.18.102.42
|
||||
172.18.103.16
|
||||
172.18.105.14
|
||||
172.18.105.27
|
||||
172.18.102.54
|
||||
@ -9,7 +9,7 @@ username = 'root'
|
||||
password = 'alpine'
|
||||
# packagename = 'com.funny.prank.call'
|
||||
|
||||
def moveRemote(hostname:str, packagename:str,serverurl:str):
|
||||
def moveRemote(hostname:str, name:str,pkg:str, serverurl:str, wash:bool=False):
|
||||
# 创建SSH传输通道
|
||||
transport = paramiko.Transport((hostname, port))
|
||||
transport.set_keepalive(5)
|
||||
@ -28,10 +28,10 @@ def moveRemote(hostname:str, packagename:str,serverurl:str):
|
||||
|
||||
with open(local_path, 'rb') as fp:
|
||||
configPlist = plistlib.load(fp)
|
||||
configPlist['IpDevName'] = packagename
|
||||
configPlist['IpDevName'] = name
|
||||
configPlist['ServerURL'] = serverurl
|
||||
configPlist['PackageName'] = 'com.cineLookStudio.cineLookStudio'
|
||||
configPlist['WashParam'] = False
|
||||
configPlist['PackageName'] = pkg
|
||||
configPlist['WashParam'] = wash
|
||||
configPlist['MainServerURL'] = "http://192.168.40.8:8080"
|
||||
|
||||
with open(local_path, 'wb') as fp:
|
||||
@ -57,6 +57,6 @@ if __name__ == "__main__":
|
||||
for it in ips1:
|
||||
try:
|
||||
print(it)
|
||||
moveRemote(it,"CineLookStudio", "https://nks-api.i.explore-sun.com")
|
||||
moveRemote(it,"CineLookStudio", 'com.cineLookStudio.cineLookStudio', "https://nks-api.i.explore-sun.com")
|
||||
except Exception as e:
|
||||
print(e)
|
||||
Loading…
Reference in New Issue
Block a user