Browse Source

存储桶地区

locky 1 year ago
parent
commit
943830d789
1 changed files with 2 additions and 2 deletions
  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]