|
@@ -221,9 +221,6 @@ 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);
|
|
@@ -241,9 +238,9 @@ public class WxPayServiceImpl implements IWxPayService {
|
|
|
data.put("trade_type", "JSAPI");
|
|
|
String TenantId = ServletUtils.getRequest().getHeader("TenantId");
|
|
|
data.put("attach", TenantId);
|
|
|
- log.info("支付参数:{}", JSON.toJSONString(data));
|
|
|
+ // log.info("支付参数:{}", JSON.toJSONString(data));
|
|
|
Map<String, String> resp = wxpay.unifiedOrder(data);
|
|
|
- log.info("支付结果:{}", JSON.toJSONString(resp));
|
|
|
+ // log.info("支付结果:{}", JSON.toJSONString(resp));
|
|
|
Map<String, String> result = new HashMap<>();
|
|
|
// result.put("provider","wxpay");
|
|
|
result.put("appId", appid);
|
|
@@ -255,7 +252,6 @@ public class WxPayServiceImpl implements IWxPayService {
|
|
|
return result;
|
|
|
} catch (Exception e) {
|
|
|
e.printStackTrace();
|
|
|
- log.info("支付错误:{}", e.getMessage());
|
|
|
}
|
|
|
|
|
|
return null;
|