|
|
|
@ -686,10 +686,11 @@ StaticParams.uploadFile = (file, callback = null) => {
|
|
|
|
|
let fd = new FormData();
|
|
|
|
|
fd.append('name', file.name)
|
|
|
|
|
fd.append('key', key)
|
|
|
|
|
|
|
|
|
|
if (BaseConfig.pt_type === "1") {
|
|
|
|
|
InterfaceConfig.callInterface([{ url: "uploadres/getSignatureInfo", method: "get", params: {}, isTestLogin: true }], (result) => {
|
|
|
|
|
if (result[0].success) {
|
|
|
|
|
let singleSignature = result[0];
|
|
|
|
|
if (result[0].success || result[0].status === 200) {
|
|
|
|
|
let singleSignature = result[0].data?result[0].data:result[0];
|
|
|
|
|
fd.append('signature', singleSignature.Signature)
|
|
|
|
|
fd.append('Content-Type', singleSignature.ContentType)
|
|
|
|
|
fd.append('policy', singleSignature.policy)
|
|
|
|
|