苹果绑定宠物新增限制

This commit is contained in:
易焱 2020-07-08 09:44:47 +08:00
parent 10626d44ae
commit ae3520859d
1 changed files with 3 additions and 0 deletions

View File

@ -671,6 +671,9 @@ public class UserServiceImpl implements UserService {
if(device.getFirstActivate()==null){ if(device.getFirstActivate()==null){
device.setFirstActivate(new Date()); device.setFirstActivate(new Date());
} }
if (device.getHardwareType() != null && device.getHardwareType().equals("3f")) {
throw new IfishException(ResultEnum.fail101);
}
//设备ID //设备ID
Integer deviceId = device.getDeviceId(); Integer deviceId = device.getDeviceId();
//是否已关联设备 //是否已关联设备