全局:简化 captcha 组件,融合到 system 模块

This commit is contained in:
YunaiV
2024-02-28 20:31:55 +08:00
parent 0480cdf03f
commit 0317e4279d
49 changed files with 48 additions and 133 deletions

View File

@ -207,8 +207,8 @@ public class AdminAuthServiceImplTest extends BaseDbUnitTest {
public void testSmsLogin_success() {
// 准备参数
String mobile = randomString();
String scene = randomString();
AuthSmsLoginReqVO reqVO = new AuthSmsLoginReqVO(mobile, scene);
String code = randomString();
AuthSmsLoginReqVO reqVO = new AuthSmsLoginReqVO(mobile, code);
// mock 方法(用户信息)
AdminUserDO user = randomPojo(AdminUserDO.class, o -> o.setId(1L));
when(userService.getUserByMobile(eq(mobile))).thenReturn(user);