master
wangning 7 years ago
parent 1e504da6c5
commit c1518c0d78

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

Loading…
Cancel
Save