|
|
|
@ -343,8 +343,8 @@ public class OutRechargeOrderServiceImpl implements OutRechargeOrderService { |
|
|
|
|
} |
|
|
|
|
order.setPaySerialNo(consumptionResult.getString("orderId")); // 支付流水号
|
|
|
|
|
order.setPayRealPrice(order.getPayPrice()); // 实付金额
|
|
|
|
|
if (order.getRechargeType() != null && order.getRechargeType() == 1) { |
|
|
|
|
JSONObject object = outRechargeOrderService.getMobile(order.getRechargeContent() , order.getOrderPrice().intValue() , order.getOrderNo()); |
|
|
|
|
if (order.getRechargeType() != null) { |
|
|
|
|
JSONObject object = outRechargeOrderService.getMobile(order.getRechargeContent() , order.getOrderPrice().intValue() , order.getOrderNo() ,order.getRechargeType()); |
|
|
|
|
if (object.getInteger("code") != 200) { |
|
|
|
|
order.setRechargeStatus(1); |
|
|
|
|
order.setAbnormalMsg(object.getString("message")); |
|
|
|
@ -387,7 +387,11 @@ public class OutRechargeOrderServiceImpl implements OutRechargeOrderService { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public JSONObject getMobile(String phone , Integer amount , String orderNo) throws Exception { |
|
|
|
|
public JSONObject getMobile(String phone , Integer amount , String orderNo , Integer isFast) throws Exception { |
|
|
|
|
|
|
|
|
|
if (isFast == 2) { |
|
|
|
|
isFast = 0; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
String timestamp = String.valueOf(System.currentTimeMillis()); |
|
|
|
|
|
|
|
|
@ -397,7 +401,7 @@ public class OutRechargeOrderServiceImpl implements OutRechargeOrderService { |
|
|
|
|
map.put("out_order_id" , orderNo); |
|
|
|
|
map.put("app_key" , CommonSysConst.getSysConfig().getCzAppKey()); |
|
|
|
|
map.put("timestamp" , timestamp.substring(0,timestamp.length()-3)); |
|
|
|
|
map.put("is_fast" , "1"); |
|
|
|
|
map.put("is_fast" , isFast); |
|
|
|
|
map.put("notify_url" , CommonSysConst.getSysConfig().getCzNotifyUrl()); |
|
|
|
|
|
|
|
|
|
String signStr = WxUtils.generateSignatureAppSecret(map, CommonSysConst.getSysConfig().getCzAppSecret() , WXPayConstants.SignType.MD5); |
|
|
|
|