|
|
|
@@ -73,7 +73,7 @@ public class TokenController { |
|
|
|
private RedisTemplate<String, String> redisTemplate; |
|
|
|
|
|
|
|
|
|
|
|
private final String REDIS_LOGIN_CODE_PIX = "saas:login:code:"; |
|
|
|
private final static String REDIS_LOGIN_CODE_PIX = "saas:login:code:"; |
|
|
|
|
|
|
|
@PostMapping("login") |
|
|
|
public AjaxResult login(@RequestBody LoginBody form) { |
|
|
|
@@ -139,7 +139,7 @@ public class TokenController { |
|
|
|
|
|
|
|
|
|
|
|
@GetMapping("validCode") |
|
|
|
public R validCode(@RequestParam String phone) { |
|
|
|
public R<String> validCode(@RequestParam String phone) { |
|
|
|
R<SysEnterpriseStaff> staff = tenantService.existStaff(phone, SecurityConstants.INNER); |
|
|
|
if (staff.getData() == null) { |
|
|
|
return R.fail("手机号不存在,请查验"); |
|
|
|
|