|
@@ -761,10 +761,13 @@ public class BuildSceneServiceImpl implements IBuildSceneService {
|
|
|
UserIncrement userIncrement = userIncrementService.getByCameraId(cameraId);
|
|
|
if(!ObjectUtils.isEmpty(userIncrement) && userIncrement.getIsExpired().equals(ExpiredStatus.NOT_EXPIRED.code())){
|
|
|
IncrementType type = incrementTypeService.getById(userIncrement.getIncrementTypeId());
|
|
|
- if (ObjectUtils.isEmpty(type) || type.getType().equals("cn")) {
|
|
|
- return PayStatus.PAY.code();
|
|
|
- } else if (type.getType().equals("eur")) {
|
|
|
- totalSpace = type.getCameraCapacity() * 1024 * 1024L;
|
|
|
+ if(type != null){
|
|
|
+ Integer cameraCapacity = type.getCameraCapacity();
|
|
|
+ if(cameraCapacity == -1){ //无限容量权益
|
|
|
+ return PayStatus.PAY.code();
|
|
|
+ }else {
|
|
|
+ totalSpace = cameraCapacity * 1024 * 1024L; //权益设置容量
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
|