|
@@ -221,6 +221,9 @@ public class WxPayServiceImpl implements IWxPayService {
|
|
|
@Override
|
|
|
public Map<String, String> payment(String out_trade_no, String openid, String body, BigDecimal price) {
|
|
|
initData();
|
|
|
+ log.info("支付错误1:{}", appid);
|
|
|
+ log.info("支付错误1:{}", mchid);
|
|
|
+ log.info("支付错误1:{}", key);
|
|
|
WxSmallConfig config = new WxSmallConfig(appid, mchid, key);
|
|
|
BigDecimal unit = new BigDecimal(100);
|
|
|
price = price.multiply(unit);
|
|
@@ -252,6 +255,7 @@ public class WxPayServiceImpl implements IWxPayService {
|
|
|
return result;
|
|
|
} catch (Exception e) {
|
|
|
e.printStackTrace();
|
|
|
+ log.info("支付错误:{}", e.getMessage());
|
|
|
}
|
|
|
|
|
|
return null;
|