修改 ftp 返回
This commit is contained in:
@@ -112,9 +112,9 @@ class Order:
|
||||
fsize = os.path.getsize(linux_path + "/"+file_name) # 435814
|
||||
print(fsize)
|
||||
if fsize == file_size:
|
||||
return "Success"
|
||||
return "ftp_success"
|
||||
else:
|
||||
return "Fail"
|
||||
return "ftp_fail"
|
||||
|
||||
# FTP 登录
|
||||
def FTP_login(self, ftp_url,file_content):
|
||||
@@ -127,9 +127,9 @@ class Order:
|
||||
d = self.CMD(data)
|
||||
|
||||
if file_content in d:
|
||||
return "Success"
|
||||
return "ftp_success"
|
||||
else:
|
||||
return "Fail"
|
||||
return "ftp_fail"
|
||||
|
||||
# 判断当前操作系统
|
||||
def Operating_System(self):
|
||||
|
||||
Reference in New Issue
Block a user