fix: 开放sn唯一校验
This commit is contained in:
@@ -274,17 +274,17 @@ public class LicenseServiceImpl implements LicenseService {
|
|||||||
if (StrUtil.isBlank(sn)) {
|
if (StrUtil.isBlank(sn)) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
// LicenseDO license = licenseMapper.selectBySn(sn);
|
LicenseDO license = licenseMapper.selectBySn(sn);
|
||||||
// if (license == null) {
|
if (license == null) {
|
||||||
// return true;
|
return true;
|
||||||
// }
|
}
|
||||||
// // 如果 id 为空,说明不用比较是否为相同 id 的License
|
// 如果 id 为空,说明不用比较是否为相同 id 的License
|
||||||
// if (id == null) {
|
if (id == null) {
|
||||||
// return false;
|
return false;
|
||||||
// }
|
}
|
||||||
// if (!license.getId().equals(id)) {
|
if (!license.getId().equals(id)) {
|
||||||
// return false;
|
return false;
|
||||||
// }
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user