|
|
@@ -2,6 +2,7 @@ package com.izouma.nineth.web;
|
|
|
|
|
|
import cn.com.sandpay.cashier.sdk.CertUtil;
|
|
|
import cn.com.sandpay.cashier.sdk.CryptoUtil;
|
|
|
+import com.alibaba.fastjson.JSON;
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
import com.izouma.nineth.config.GeneralProperties;
|
|
|
import com.izouma.nineth.enums.PayMethod;
|
|
|
@@ -48,9 +49,9 @@ public class SandPayController {
|
|
|
return "<html><body><a href=\"" + qrCode + "\">" + qrCode + "</a></body></html>";
|
|
|
}
|
|
|
|
|
|
- @GetMapping(value = "/testTransfer", produces = "text/html")
|
|
|
- private Object testTransfer(@RequestParam String name, @RequestParam String bank, @RequestParam BigDecimal amount) {
|
|
|
- return sandPayService.transfer(name, bank, amount);
|
|
|
+ @GetMapping(value = "/testTransfer")
|
|
|
+ private String testTransfer(@RequestParam String name, @RequestParam String bank, @RequestParam BigDecimal amount) {
|
|
|
+ return JSON.toJSONString(sandPayService.transfer(name, bank, amount), true);
|
|
|
}
|
|
|
|
|
|
@PostMapping("/notify")
|