fix 水晶立牌下载

master
Todking 3 years ago
parent 036ebe62cf
commit d5264b4bad

@ -2509,7 +2509,7 @@ public class ClientManagerImpl implements ClientManager, ManagerTodoNoticeProvid
JSONObject client = clientDetail(manager, clientMoniker); JSONObject client = clientDetail(manager, clientMoniker);
try { try {
JSONObject qrboardConfig = new JSONObject(); JSONObject qrboardConfig = new JSONObject();
qrboardConfig.put("src", PlatformEnvironment.getEnv().concatUrl("/static/images/aggregate_qr_board.png")); qrboardConfig.put("src", PlatformEnvironment.getEnv().concatUrl("/static/images/aggretage_aps_board.jpg"));
qrboardConfig.put("type", "royalpay"); qrboardConfig.put("type", "royalpay");
qrboardConfig.put("x", "835"); qrboardConfig.put("x", "835");
qrboardConfig.put("y", "1290"); qrboardConfig.put("y", "1290");

@ -131,8 +131,10 @@ public class PartnerManageController {
HttpServletResponse response) throws IOException { HttpServletResponse response) throws IOException {
response.setContentType("application/octet-stream;"); response.setContentType("application/octet-stream;");
response.addHeader("Content-Disposition", "attachment; filename=qr_board.jpg"); response.addHeader("Content-Disposition", "attachment; filename=qr_board.jpg");
OutputStream ous = response.getOutputStream(); try(OutputStream ous = response.getOutputStream()) {
clientManager.writeAggregateQrCodeBoard(manager, clientMoniker, config, ous, "PC"); clientManager.writeAggregateQrCodeBoard(manager, clientMoniker, config, ous, "PC");
ous.flush();
}
} }
@ManagerMapping(value = "/{clientMoniker}/qrcode_board/CBBankAggregate", method = RequestMethod.GET) @ManagerMapping(value = "/{clientMoniker}/qrcode_board/CBBankAggregate", method = RequestMethod.GET)

Binary file not shown.

After

Width:  |  Height:  |  Size: 499 KiB

@ -67,7 +67,7 @@
</p> </p>
<p class="col-md-12"> <p class="col-md-12">
<a ng-href="/client/partner_info/qrcode_board/aggregate?currency={{qrConfig.currency}}&preauth={{qrConfig.preauth==true}}&qrcode={{qrConfig.qrcode==true}}&customerrate={{qrConfig.customerrate==true}}" <a ng-href="/client/partner_info/qrcode_board/aggregate?currency={{qrConfig.currency}}&preauth={{qrConfig.preauth==true}}&qrcode={{qrConfig.qrcode==true}}&customerrate={{qrConfig.customerrate==true}}"
target="_blank"><i class="fa fa-download"></i>Download Aggregate QR Board Image (聚合支付水晶立牌:支持支付宝、微信、翼支付) target="_blank"><i class="fa fa-download"></i>Download Aggregate QR Board Image (聚合支付水晶立牌:支持支付宝、微信、A+)
</a> </a>
</p> </p>
</div> </div>

Loading…
Cancel
Save