|
@@ -24,6 +24,7 @@ import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
import java.rmi.ServerException;
|
|
|
import java.util.List;
|
|
|
+import java.util.Objects;
|
|
|
import java.util.Random;
|
|
|
import java.util.concurrent.TimeUnit;
|
|
|
|
|
@@ -48,7 +49,7 @@ public class SendSmsController {
|
|
|
@GetMapping("/noteSending")
|
|
|
public ApiResult<Void> noteSending(@RequestParam Integer tenantId,@RequestParam String phone) {
|
|
|
SysUser loginUser = sysUserService.getAppUserInfo(null, tenantId, phone);
|
|
|
- if(loginUser == null){
|
|
|
+ if(Objects.isNull(loginUser)){
|
|
|
throw new BusinessException("手机号未注册");
|
|
|
}
|
|
|
|