Commit 0a388a36a6ee4fd03b757babeffe6269f9578cc6
1 parent
536939b7
修改音频保存失败的https
Showing
2 changed files
with
9 additions
and
2 deletions
src/js/gbreplayer.js
| ... | ... | @@ -1888,6 +1888,12 @@ $(function(){ |
| 1888 | 1888 | |
| 1889 | 1889 | function selectLang(langid){ |
| 1890 | 1890 | switch (langid) { |
| 1891 | + case 1: | |
| 1892 | + $('#htmlbutton').data('languageid', 1).html("C++").trigger('click'); | |
| 1893 | + break; | |
| 1894 | + case 42: | |
| 1895 | + $('#htmlbutton').data('languageid', 42).html("C++").trigger('click'); | |
| 1896 | + break; | |
| 1891 | 1897 | case 10: |
| 1892 | 1898 | $('#htmlbutton').data('languageid', 10).html("JAVA").trigger('click'); |
| 1893 | 1899 | break; | ... | ... |
src/js/recorder/Myna.js
| ... | ... | @@ -221,6 +221,7 @@ |
| 221 | 221 | coment_size: 0, |
| 222 | 222 | errorNum: 0 |
| 223 | 223 | } |
| 224 | + console.log(obj); | |
| 224 | 225 | uploadArr.push(obj) |
| 225 | 226 | for (var partIndex = 0; partIndex < parts.total_num; partIndex++) { |
| 226 | 227 | var partItem = parts.multi_list[partIndex]; |
| ... | ... | @@ -260,13 +261,13 @@ |
| 260 | 261 | |
| 261 | 262 | var headers = { 'x-amz-acl': 'public-read' } |
| 262 | 263 | if (isMultiPart == true) { |
| 263 | - headers = { 'Access-Control-Allow-Origin': "http://" + window.location.host } | |
| 264 | + headers = { 'Access-Control-Allow-Origin': "https://" + window.location.host } | |
| 264 | 265 | } else { |
| 265 | 266 | headers = { 'x-amz-acl': 'public-read' } |
| 266 | 267 | } |
| 267 | 268 | console.log(url); |
| 268 | 269 | |
| 269 | - url = 'https' + url.split('http')[1]; | |
| 270 | + url = 'https' + url.split('https')[1]; | |
| 270 | 271 | $.ajax({ |
| 271 | 272 | url: url, |
| 272 | 273 | type: 'PUT', | ... | ... |