|
@@ -361,7 +361,7 @@ class CloudStorageView(View):
|
|
|
aws_secret_access_key='ckYLg4Lo9ZXJIcJEAKkzf2rWvs8Xth1FCjqiAqUw',
|
|
|
region_name=REGION_NAME
|
|
|
)
|
|
|
- print('----------test')
|
|
|
+ print('--------2--test')
|
|
|
print(REGION_NAME)
|
|
|
Policy = {
|
|
|
"Version": "2012-10-17",
|
|
@@ -369,7 +369,7 @@ class CloudStorageView(View):
|
|
|
{
|
|
|
"Effect": "Allow",
|
|
|
"Action": "s3:*",
|
|
|
- "Resource": ["arn:aws:s3:::{bucket_name}/{uid_channel}/*".
|
|
|
+ "Resource": ["arn:aws:s3:::{bucket_name}/{uid_channel}*".
|
|
|
format(bucket_name=bucket_name,uid_channel=storage)]
|
|
|
}
|
|
|
]
|
|
@@ -453,7 +453,7 @@ class CloudStorageView(View):
|
|
|
# region_name=bucket__region
|
|
|
# )
|
|
|
# conn = session.client('s3')
|
|
|
- # thumbspng = '{uid}/vod{channel}/{time}/thumbs.png'. \
|
|
|
+ # thumbspng = '{uid}/vod{channel}/{time}/thumbs.jpg'. \
|
|
|
# format(uid=uid, channel=channel, time=vod['time'])
|
|
|
# response_url = conn.generate_presigned_url(
|
|
|
# 'get_object',
|
|
@@ -677,7 +677,7 @@ class CloudStorageView(View):
|
|
|
function payOKButton() {
|
|
|
// 复杂数据
|
|
|
console.log('success')
|
|
|
- window.webkit.messageHandlers.jsCallOC.postMessage({"status": 0});
|
|
|
+ window.location.href="https://www.baidu.com?page=closePage";
|
|
|
}
|
|
|
</script>
|
|
|
</body>
|
|
@@ -757,7 +757,7 @@ class CloudStorageView(View):
|
|
|
function payOKButton() {
|
|
|
// 复杂数据
|
|
|
console.log('success')
|
|
|
- window.webkit.messageHandlers.jsCallOC.postMessage({"status": 1});
|
|
|
+ window.location.href="https://www.baidu.com?page=closePage"
|
|
|
}
|
|
|
</script>
|
|
|
</body>
|