1
0

Merge remote-tracking branch 'upstream/main'

This commit is contained in:
2025-07-21 08:43:34 +08:00
7 changed files with 36 additions and 7 deletions

View File

@ -95,7 +95,10 @@ public class AppDeviceShareService {
return code.equals(smsCode);
}
public int deviceShare(AppDeviceShareBo bo) {
validateSmsCode(AppLoginHelper.getTenantId(), bo.getPhonenumber(), bo.getSmsCode());
boolean flag = validateSmsCode(AppLoginHelper.getTenantId(), bo.getPhonenumber(), bo.getSmsCode());
if(!flag){
throw new ServiceException("验证码错误");
}
Device device = deviceMapper.selectById(bo.getDeviceId());
if(device==null){