fix:企业端分标委

This commit is contained in:
zhangqinlin
2021-12-17 11:27:02 +08:00
parent 9532c033bc
commit 70131799da
5 changed files with 202 additions and 39 deletions
@@ -365,10 +365,16 @@ public class CompanyLoginController {
@GetMapping(value = "/sendVerificationCode")
public Result<?> sendVerificationCode(@RequestParam(name="phone") String phone,
@RequestParam(name="codeType") String codeType) {
if("3".equals(codeType)) {
sysBaseAPI.sendVerificationCode(phone,codeType,"300",null);
String string = redisUtil.get("_verification:_phone:" + phone).toString();
return Result.OK(string);
}
LambdaQueryWrapper<PayContactsManagement> queryWrapper = new LambdaQueryWrapper<>();
queryWrapper.eq(PayContactsManagement::getPhone, PasswordUtil.encrypt(phone));
PayContactsManagement contactsManagement = payContactsManagementService.getOne(queryWrapper);
if (Objects.isNull(contactsManagement)){
if (Objects.isNull(contactsManagement)) {
throw new JeroBootException("手机号不是企业联系人");
}
sysBaseAPI.sendVerificationCode(phone,codeType,"300",null);