Browse Source

修正key

locky 2 years ago
parent
commit
88266f28d5
1 changed files with 2 additions and 2 deletions
  1. 2 2
      Controller/FeedBack.py

+ 2 - 2
Controller/FeedBack.py

@@ -323,9 +323,9 @@ class FeedBackView(View):
             secret_access_key = AWS_SECRET_ACCESS_KEY[1]
             bucket = 'foreignpush'
         if is_st == 3:
-            key = '{uid}/{channel}/{event_time}.jpeg'.format(uid=uid, channel=channel, event_time=event_time)
-        else:
             key = '{uid}/{channel}/{event_time}_0.jpeg'.format(uid=uid, channel=channel, event_time=event_time)
+        else:
+            key = '{uid}/{channel}/{event_time}.jpeg'.format(uid=uid, channel=channel, event_time=event_time)
         try:
             s3 = AmazonS3Util(
                 aws_access_key_id=aws_access_key_id,