|
|
@@ -253,6 +253,12 @@ public class AlipayTransferService {
|
|
|
throw new BusinessException(400, "转账场景说明不能为空");
|
|
|
if (sceneImageKeys == null || sceneImageKeys.isBlank())
|
|
|
throw new BusinessException(400, "转账场景截图不能为空");
|
|
|
+ // 场景截图+资质文件合计最多5个
|
|
|
+ int imgCnt = sceneImageKeys.split(",").length;
|
|
|
+ int qualCnt = (sceneQualificationImageKeys != null && !sceneQualificationImageKeys.isBlank())
|
|
|
+ ? sceneQualificationImageKeys.split(",").length : 0;
|
|
|
+ if (imgCnt + qualCnt > 5)
|
|
|
+ throw new BusinessException(400, "场景截图和资质文件合计最多5个");
|
|
|
String outBizNo = SnowflakeIdGenerator.nextIdStr();
|
|
|
try {
|
|
|
AlipayFundExpandindirectCreateModel model = new AlipayFundExpandindirectCreateModel();
|