zoujiajian 3 年之前
父节点
当前提交
7e56548844

+ 4 - 3
netflix-web/src/main/java/com/cyksj/web/controller/user/DistributePopularizeController.java

@@ -244,7 +244,8 @@ public class DistributePopularizeController {
 			throw BusinessRuntimeException.getInstance("请先授权登录");
 		}
 		DistributeMoneyApply.Type type = applyMoneyReq.getType();
-		if (type != null && type == DistributeMoneyApply.Type.zfb) {
+		if (type == null) type = DistributeMoneyApply.Type.zfb;
+		if (type == DistributeMoneyApply.Type.zfb) {
 			if (ObjectUtil.hasEmpty(applyMoneyReq.getAccount(), applyMoneyReq.getRealName())) {
 				throw BusinessRuntimeException.getInstance("必填项不能为空");
 			}
@@ -252,7 +253,7 @@ public class DistributePopularizeController {
 				throw BusinessRuntimeException.getInstance("请输入正确的账户信息");
 			}
 		}
-		if (type != null && type == DistributeMoneyApply.Type.usdt) {
+		if (type == DistributeMoneyApply.Type.usdt) {
 			if (StrUtil.isEmpty(applyMoneyReq.getWalletAddr())) {
 				throw BusinessRuntimeException.getInstance("USDT提现钱包地址不能为空");
 			}
@@ -264,7 +265,7 @@ public class DistributePopularizeController {
 			}
 		}
 		DistributeMoneyApply distributeMoneyApply = null;
-		if (type != null && type == DistributeMoneyApply.Type.pwdRed) {
+		if (type == DistributeMoneyApply.Type.pwdRed) {
 			distributeMoneyApply = userDistributeMapper.selectRelationBusiness(userId);
 		}
 		Boolean isTakeAll = applyMoneyReq.getIsTakeAll();