From 2a498263b7812d9fb5acd6ea93a6d123e41bdc30 Mon Sep 17 00:00:00 2001 From: wangning <164851225@qq.com> Date: Wed, 30 May 2018 12:13:13 +0800 Subject: [PATCH] update --- .../application/core/impls/SimpleClientApplyServiceImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/au/com/royalpay/payment/manage/application/core/impls/SimpleClientApplyServiceImpl.java b/src/main/java/au/com/royalpay/payment/manage/application/core/impls/SimpleClientApplyServiceImpl.java index 714b864d4..78d2c8d62 100644 --- a/src/main/java/au/com/royalpay/payment/manage/application/core/impls/SimpleClientApplyServiceImpl.java +++ b/src/main/java/au/com/royalpay/payment/manage/application/core/impls/SimpleClientApplyServiceImpl.java @@ -268,7 +268,7 @@ public class SimpleClientApplyServiceImpl implements SimpleClientApplyService { JSONObject sysConfig = sysConfigManager.getSysConfig(); String arr [] = sysConfig.getString("temp_sub_mch_id").split(","); - String tempSubMerchantId = arr[new Random().nextInt(arr.length) + 1]; + String tempSubMerchantId = arr[new Random().nextInt(arr.length)]; WeChatPayConfig.Merchant availableMerchant = mpPaymentApi.determineMerchant(tempSubMerchantId); String clientMoniker = generateClientMoniker(); JSONObject sysClient = new JSONObject();