瀏覽代碼

修正key

locky 2 年之前
父節點
當前提交
88266f28d5
共有 1 個文件被更改,包括 2 次插入2 次删除
  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,