|
@@ -72,7 +72,7 @@ public class SporadicChargeInfoController extends BaseController {
|
|
|
}
|
|
|
SporadicChargeInfo info = sporadicChargeInfoService.get(sporadicPayDto.getSporadicId());
|
|
|
|
|
|
- if(info.getMaxNum() != null) {
|
|
|
+ if (info.getMaxNum() != null) {
|
|
|
String msg = "";
|
|
|
for (int i = 1; i <= 100; i++) {
|
|
|
try {
|
|
@@ -82,11 +82,14 @@ public class SporadicChargeInfoController extends BaseController {
|
|
|
}
|
|
|
return succeed(payMap);
|
|
|
} catch (Exception e) {
|
|
|
- int max = 100, min = 1;
|
|
|
- int times = (int) (Math.random() * (max - min) + min);
|
|
|
- Thread.sleep(times);
|
|
|
msg = e.getMessage();
|
|
|
- continue;
|
|
|
+ if (e instanceof BizException) {
|
|
|
+ int max = 100, min = 1;
|
|
|
+ int times = (int) (Math.random() * (max - min) + min);
|
|
|
+ Thread.sleep(times);
|
|
|
+ continue;
|
|
|
+ }
|
|
|
+ break;
|
|
|
}
|
|
|
}
|
|
|
return failed(msg);
|