|
@@ -237,6 +237,10 @@ public class WxPayServiceImpl implements IWxPayService {
|
|
|
public Map<String, String> paymentPc(String out_trade_no, String openid, String body, BigDecimal price) {
|
|
|
initData();
|
|
|
WxSmallConfig config = new WxSmallConfig(appid, mchid, key);
|
|
|
+ System.out.println(55678);
|
|
|
+ System.out.println(appid);
|
|
|
+ System.out.println(mchid);
|
|
|
+ System.out.println(key);
|
|
|
BigDecimal unit = new BigDecimal(100);
|
|
|
price = price.multiply(unit);
|
|
|
try {
|
|
@@ -254,6 +258,7 @@ public class WxPayServiceImpl implements IWxPayService {
|
|
|
String TenantId = ServletUtils.getRequest().getHeader("TenantId");
|
|
|
data.put("attach", TenantId);
|
|
|
Map<String, String> resp = wxpay.unifiedOrder(data);
|
|
|
+ System.out.println(resp);
|
|
|
Map<String, String> result = new HashMap<>();
|
|
|
String code_url = resp.get("code_url");
|
|
|
if (Validator.isEmpty(code_url)) {
|