修改ftp返回
This commit is contained in:
@@ -110,9 +110,9 @@ class Order:
|
||||
fsize = os.path.getsize(linux_path + "/"+fiel_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):
|
||||
@@ -120,9 +120,9 @@ class Order:
|
||||
d = self.CMD(data)
|
||||
# print(d)
|
||||
if file_content in d:
|
||||
return "Success"
|
||||
return "ftp_success"
|
||||
else:
|
||||
return "Fail"
|
||||
return "ftp_fail"
|
||||
|
||||
if __name__ == '__main__':
|
||||
datas = {"url":['https://www.baidu.com'],
|
||||
|
||||
Reference in New Issue
Block a user