| | |
| | | private RabbitTemplate rabbitTemplate; |
| | | @Resource |
| | | private McsMerchantService mcsMerchantService; |
| | | |
| | | private static String H5_LOGIN_APPID="wx475fcd33c8030df8"; |
| | | @Override |
| | | public R pageList(CommonPage commonPage) { |
| | | return R.ok(this.baseMapper.pageList(new Page(commonPage.getPage(),commonPage.getSize()),commonPage)); |
| | |
| | | money = BigDecimal.valueOf(0.01); |
| | | } |
| | | // 调用wx支付 |
| | | String result = WxPayUtils.h5pay(appid, mchId, payKey, notifyUrl, "点亮支付", mcsOrderVO.getOpenId(), |
| | | String realAppId=appid; |
| | | if(mcsOrder.getOrderNo().equals("JSAPI")){ |
| | | realAppId=H5_LOGIN_APPID; |
| | | } |
| | | String result = WxPayUtils.h5pay(realAppId, mchId, payKey, notifyUrl, "点亮支付", mcsOrderVO.getOpenId(), |
| | | mcsOrder.getOrderNo(), money,mcsOrderVO.getTradeType(), mcsOrderVO.getClientIp()); |
| | | if (mcsOrderVO.getTradeType().equals("NATIVE")) { |
| | | JSONObject jsonObjectResult = JSONObject.parseObject(result); |