fix:企业端分标委
This commit is contained in:
+7
-1
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user