|
|
@ -257,11 +257,12 @@ public class SimpleClientApplyServiceImpl implements SimpleClientApplyService {
|
|
|
|
private void applyerToClient(String username) {
|
|
|
|
private void applyerToClient(String username) {
|
|
|
|
JSONObject sysConfig = sysConfigManager.getSysConfig();
|
|
|
|
JSONObject sysConfig = sysConfigManager.getSysConfig();
|
|
|
|
String arr[] = sysConfig.getString("temp_sub_mch_id").split(",");
|
|
|
|
String arr[] = sysConfig.getString("temp_sub_mch_id").split(",");
|
|
|
|
String tempSubMerchantId = arr[new Random().nextInt(arr.length)];
|
|
|
|
String tempSubMerchantId =null;
|
|
|
|
WeChatPayConfig.Merchant availableMerchant = null;
|
|
|
|
WeChatPayConfig.Merchant availableMerchant = null;
|
|
|
|
int errorReCounts = 6;
|
|
|
|
int errorReCounts = 6;
|
|
|
|
for (int i = 0; i < errorReCounts; i++) {
|
|
|
|
for (int i = 0; i < errorReCounts; i++) {
|
|
|
|
try{
|
|
|
|
try{
|
|
|
|
|
|
|
|
tempSubMerchantId =arr[new Random().nextInt(arr.length)];
|
|
|
|
availableMerchant = mpPaymentApi.determineMerchant(tempSubMerchantId);
|
|
|
|
availableMerchant = mpPaymentApi.determineMerchant(tempSubMerchantId);
|
|
|
|
i=errorReCounts;
|
|
|
|
i=errorReCounts;
|
|
|
|
}catch (Exception e){
|
|
|
|
}catch (Exception e){
|
|
|
|