mirror of
				https://gitee.com/hhyykk/ipms-sjy.git
				synced 2025-10-31 02:08:43 +08:00 
			
		
		
		
	【同步】BOOT 和 CLOUD 的功能
This commit is contained in:
		| @@ -209,6 +209,13 @@ public class AdminAuthServiceImplTest extends BaseDbUnitTest { | |||||||
|         String mobile = randomString(); |         String mobile = randomString(); | ||||||
|         String code = randomString(); |         String code = randomString(); | ||||||
|         AuthSmsLoginReqVO reqVO = new AuthSmsLoginReqVO(mobile, code); |         AuthSmsLoginReqVO reqVO = new AuthSmsLoginReqVO(mobile, code); | ||||||
|  |         // mock 方法(验证码) | ||||||
|  |         doNothing().when(smsCodeApi).useSmsCode((argThat(smsCodeUseReqDTO -> { | ||||||
|  |             assertEquals(mobile, smsCodeUseReqDTO.getMobile()); | ||||||
|  |             assertEquals(code, smsCodeUseReqDTO.getCode()); | ||||||
|  |             assertEquals(SmsSceneEnum.ADMIN_MEMBER_LOGIN.getScene(), smsCodeUseReqDTO.getScene()); | ||||||
|  |             return true; | ||||||
|  |         }))); | ||||||
|         // mock 方法(用户信息) |         // mock 方法(用户信息) | ||||||
|         AdminUserDO user = randomPojo(AdminUserDO.class, o -> o.setId(1L)); |         AdminUserDO user = randomPojo(AdminUserDO.class, o -> o.setId(1L)); | ||||||
|         when(userService.getUserByMobile(eq(mobile))).thenReturn(user); |         when(userService.getUserByMobile(eq(mobile))).thenReturn(user); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 YunaiV
					YunaiV