diff --git a/hai-service/src/main/java/com/hai/service/impl/OutRechargeOrderServiceImpl.java b/hai-service/src/main/java/com/hai/service/impl/OutRechargeOrderServiceImpl.java index 7684bf54..6766d5fa 100644 --- a/hai-service/src/main/java/com/hai/service/impl/OutRechargeOrderServiceImpl.java +++ b/hai-service/src/main/java/com/hai/service/impl/OutRechargeOrderServiceImpl.java @@ -773,7 +773,13 @@ public class OutRechargeOrderServiceImpl implements OutRechargeOrderService { String orderNo = "CZ" + DateUtil.date2String(new Date(), "yyyyMMddHHmmss") + IDGenerator.nextId(5); - String[] rechargePlatform = outRechargePrice.getRechargePlatform().split("-"); + String string = outRechargePrice.getRechargePlatform().substring(1,outRechargePrice.getRechargePlatform().length()-1); + + String[] rechargePlatform = string.split("-"); + + if (string.length() == 1) { + type = Integer.parseInt(string); + } for (String s : rechargePlatform) { // 尖椒充值