edgeUpdate
This commit is contained in:
@ -35,7 +35,7 @@ def addobs(file_path, status): #save videos
|
||||
status = resp.json()
|
||||
if not 'data' in status:#延迟设置
|
||||
ti.sleep(15)
|
||||
resp = requests.post(url=Vre, data=json_data)
|
||||
resp = requests.post(url=vre, data=json_data)
|
||||
status = resp.json()
|
||||
if 'data' in status:
|
||||
break
|
||||
@ -53,7 +53,6 @@ def addobs(file_path, status): #save videos
|
||||
objectkey = 'videos/'+time+'/'+status+'/'+status+'_'+objectkey
|
||||
if status == '02' or status_:
|
||||
resp = obsClient.putFile(bucketName, objectkey, file_path)
|
||||
#print('>>>>>>>>>>>>>>', file_path, backups_path)
|
||||
shutil.move(file_path, backups_path)
|
||||
#os.remove(file_path)
|
||||
|
||||
|
Reference in New Issue
Block a user