Explorar o código

存储桶地区

locky hai 1 ano
pai
achega
943830d789
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      Controller/DetectControllerV2.py

+ 2 - 2
Controller/DetectControllerV2.py

@@ -378,11 +378,11 @@ class DetectControllerViewV2(View):
                         params = {'Key': thumbspng}
                         if region == 1:
                             params['Bucket'] = 'foreignpush'
-                            response_url = aws_s3_guonei.generate_presigned_url('get_object', Params=params,
+                            response_url = aws_s3_guowai.generate_presigned_url('get_object', Params=params,
                                                                                 ExpiresIn=300)
                         else:
                             params['Bucket'] = 'push'
-                            response_url = aws_s3_guowai.generate_presigned_url('get_object', Params=params, ExpiresIn=300)
+                            response_url = aws_s3_guonei.generate_presigned_url('get_object', Params=params, ExpiresIn=300)
                         equipment_info['img'] = response_url
                         equipment_info['img_list'] = [response_url]