浏览代码

update windows href

lang 4 年之前
父节点
当前提交
5af80815a9
共有 2 个文件被更改,包括 3 次插入3 次删除
  1. 2 2
      Controller/CloudStorage.py
  2. 1 1
      Controller/TestApi.py

+ 2 - 2
Controller/CloudStorage.py

@@ -677,7 +677,7 @@ class CloudStorageView(View):
     function payOKButton() {
         // 复杂数据
         console.log('success')
-        window.webkit.messageHandlers.jsCallOC.postMessage({"status": 0});
+        window.location.href="http://test.devma.com/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="http://test.devma.com/closePage"  
     }
 	</script>
 </body> 

+ 1 - 1
Controller/TestApi.py

@@ -703,7 +703,7 @@ class testView(View):
         client = session.client("s3")
         bucket = "asj-oct-ipc" # 【你 bucket 的名字】 # 首先需要保.证 s3 上已经存在该存储桶,否则报错
         upload_data = open("./././static/log/error.log", "rb")
-        upload_key = "86YC8Z192VB1VMKU111A/test"
+        upload_key = "86YC8Z192VB1VMKU111A/vod1/test"
         file_obj = s3.Bucket(bucket).put_object(Key=upload_key, Body=upload_data)
         print('--------')
         print(file_obj)