|
|
@@ -101,10 +101,10 @@
|
|
|
function getHead(fileId) {
|
|
|
$('.head img').attr('src', '../static/img/invite/header-img.png');
|
|
|
var timestamp = new Date().getTime()
|
|
|
- var encrypts = encrypt(
|
|
|
- 'RuiChiSecurityGo' + timestamp,
|
|
|
- 'RuiChiSecurityGo'
|
|
|
- )
|
|
|
+ var encrypts = encrypt(
|
|
|
+ 'RuiChiSecurityGo' + timestamp,
|
|
|
+ 'RuiChiSecurityGo'
|
|
|
+ )
|
|
|
var data = {
|
|
|
keyType: 2,
|
|
|
security: encrypts
|
|
|
@@ -116,10 +116,11 @@
|
|
|
xhrFields: { responseType: "blob" },
|
|
|
cache: false,
|
|
|
success: function (res) {
|
|
|
+ var xhr = new XMLHttpRequest();
|
|
|
var imageType = xhr.getResponseHeader("Content-Type");
|
|
|
- var blob = new Blob([res], { type: imageType });
|
|
|
+ var blob = new Blob([res], { type: imageType });
|
|
|
var imageUrl = (window.URL || window.webkitURL).createObjectURL(blob);
|
|
|
- $('.head img').attr('src', imageUrl);
|
|
|
+ $('.head img').attr('src', imageUrl);
|
|
|
}
|
|
|
})
|
|
|
}
|