|
@@ -133,7 +133,7 @@ public class SysUserSignCertController {
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
- * 发送绑卡验证码
|
|
|
|
|
|
+ * 税邦云发送绑卡验证码
|
|
*
|
|
*
|
|
* @param userSignCertDTO
|
|
* @param userSignCertDTO
|
|
* @return
|
|
* @return
|
|
@@ -141,7 +141,7 @@ public class SysUserSignCertController {
|
|
@SysLog("税邦云发送绑卡验证码")
|
|
@SysLog("税邦云发送绑卡验证码")
|
|
@PostMapping("/bind-card-verification")
|
|
@PostMapping("/bind-card-verification")
|
|
public R<?> bindCardVerification(@RequestBody UserSignCertDTO userSignCertDTO) {
|
|
public R<?> bindCardVerification(@RequestBody UserSignCertDTO userSignCertDTO) {
|
|
- if (userSignCertDTO.getUserId() != null) {
|
|
|
|
|
|
+ if (userSignCertDTO.getUserId() == null) {
|
|
return R.failed("userId不能为空");
|
|
return R.failed("userId不能为空");
|
|
}
|
|
}
|
|
if (StrUtil.isBlank(userSignCertDTO.getBankPhone())) {
|
|
if (StrUtil.isBlank(userSignCertDTO.getBankPhone())) {
|
|
@@ -152,7 +152,7 @@ public class SysUserSignCertController {
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
- * 发送绑卡验证码
|
|
|
|
|
|
+ * 税邦云绑卡确认
|
|
*
|
|
*
|
|
* @param userSignCertDTO
|
|
* @param userSignCertDTO
|
|
* @return
|
|
* @return
|
|
@@ -160,12 +160,15 @@ public class SysUserSignCertController {
|
|
@SysLog("税邦云绑卡确认")
|
|
@SysLog("税邦云绑卡确认")
|
|
@PostMapping("/bind-card-confirm")
|
|
@PostMapping("/bind-card-confirm")
|
|
public R<?> bindCardConfirm(@RequestBody UserSignCertDTO userSignCertDTO) {
|
|
public R<?> bindCardConfirm(@RequestBody UserSignCertDTO userSignCertDTO) {
|
|
- if (userSignCertDTO.getUserId() != null) {
|
|
|
|
|
|
+ if (userSignCertDTO.getUserId() == null) {
|
|
return R.failed("userId不能为空");
|
|
return R.failed("userId不能为空");
|
|
}
|
|
}
|
|
if (StrUtil.isBlank(userSignCertDTO.getBankPhone())) {
|
|
if (StrUtil.isBlank(userSignCertDTO.getBankPhone())) {
|
|
return R.failed("银行预留手机号不能为空");
|
|
return R.failed("银行预留手机号不能为空");
|
|
}
|
|
}
|
|
|
|
+ if (StrUtil.isBlank(userSignCertDTO.getVerifyCode())) {
|
|
|
|
+ return R.failed("验证码不能为空");
|
|
|
|
+ }
|
|
sysUserSignCertService.bindCardConfirm(userSignCertDTO);
|
|
sysUserSignCertService.bindCardConfirm(userSignCertDTO);
|
|
// TODO
|
|
// TODO
|
|
return R.ok();
|
|
return R.ok();
|