| | |
| | | // String app = type == 1 ? "APP" : "JSAPI"; |
| | | // resultUtil = payMoneyUtil.weixinpay("完成订单", "", orderId + "_3_" + UUIDUtil.getRandomCode(5), orderMoney.toString(), "/base/wxPayOrderTaxi", app, userInfo.getAppletsOpenId()); |
| | | |
| | | if(ToolUtil.isEmpty(appletsOpenId)){ |
| | | return ResultUtil.error("获取微信身份信息失败,无法发起支付"); |
| | | } |
| | | //创建订单并拉起支付(这里不需要创建行程单,由三方处理) |
| | | Driver driver = driverService.selectById(orderCrossCity.getDriverId()); |
| | | if(null == orderCrossCity.getIsCreated() || 0 == orderCrossCity.getIsCreated()){ |
| | |
| | | return ResultUtil.error("乘客手机号不能为空"); |
| | | } |
| | | if (warpper.getPlacementLat() == null || warpper.getPlacementLon() == null || ToolUtil.isEmpty(warpper.getPlacementAddress())) { |
| | | return ResultUtil.error("下单地点点信息不完整"); |
| | | return ResultUtil.error("下单地点信息不完整"); |
| | | } |
| | | if (warpper.getStartLon() == null || warpper.getStartLat() == null || ToolUtil.isEmpty(warpper.getStartAddress())) { |
| | | return ResultUtil.error("上车点信息不完整"); |
| | |
| | | /*根据微信端的code获取openId*/ |
| | | // openId=new JsapiTicketUtilX().getOpenId(code); |
| | | } |
| | | |
| | | |
| | | OrderRide orderRide=orderRideService.selectById(orderId); |
| | | if(orderRide.getState()==6){ |
| | | return ApiJson.returnNG("该订单已取消"); |
| | |
| | | Double orderMoney = orderRide.getMoney(); |
| | | if(2 == payType){ |
| | | UserInfo userInfo = userInfoService.selectById(orderRide.getUserId()); |
| | | if(ToolUtil.isEmpty(userInfo.getAppletsOpenId())){ |
| | | return ResultUtil.error("获取微信身份信息失败,无法发起支付"); |
| | | } |
| | | if(null == orderRide.getIsCreated() || 0 == orderRide.getIsCreated()){ |
| | | //调用中台创建订单及拉起支付接口 |
| | | TradeOrderCreateData tradeOrderCreateData = new TradeOrderCreateData(); |
| | |
| | | if (orderMoney == 0) { |
| | | return ResultUtil.error("请使用余额支付"); |
| | | } |
| | | if(ToolUtil.isEmpty(userInfo.getAppletsOpenId())){ |
| | | return ResultUtil.error("获取微信身份信息失败,无法发起支付"); |
| | | } |
| | | |
| | | // String app = type == 1 ? "APP" : "JSAPI"; |
| | | // resultUtil = payMoneyUtil.weixinpay("完成订单", "", orderId + "_1_" + UUIDUtil.getRandomCode(5), orderMoney.toString(), "/base/wxPayOrderTaxi", app, userInfo.getAppletsOpenId()); |
| | | //如果没有创建行程,需要先创建行程单 |
| | |
| | | } |
| | | // String app = type == 1 ? "APP" : "JSAPI"; |
| | | // resultUtil = payMoneyUtil.weixinpay("完成订单", "", orderId + "_2_" + UUIDUtil.getRandomCode(5), orderMoney.toString(), "/base/wxPayOrderTaxi", app, userInfo.getAppletsOpenId()); |
| | | |
| | | |
| | | if(ToolUtil.isEmpty(userInfo.getAppletsOpenId())){ |
| | | return ResultUtil.error("获取微信身份信息失败,无法发起支付"); |
| | | } |
| | | Driver driver = driverService.selectById(orderTaxi.getDriverId()); |
| | | if(ToolUtil.isEmpty(orderTaxi.getTravelId())){ |
| | | Company company = companyService.selectById(driver.getCompanyId()); |