diff --git a/src/main/java/au/com/royalpay/payment/manage/system/core/impl/TradeSecureServiceHanyinImpl.java b/src/main/java/au/com/royalpay/payment/manage/system/core/impl/TradeSecureServiceHanyinImpl.java index e9a83516a..060a41e1b 100644 --- a/src/main/java/au/com/royalpay/payment/manage/system/core/impl/TradeSecureServiceHanyinImpl.java +++ b/src/main/java/au/com/royalpay/payment/manage/system/core/impl/TradeSecureServiceHanyinImpl.java @@ -66,7 +66,7 @@ public class TradeSecureServiceHanyinImpl implements TradeSecureService { if (upload) { sftpUpload(file); } - if (resp != null) { + if (!upload && resp != null) { file.writeToHttp(resp); } }