add PACKAGE_TYPE_D

This commit is contained in:
Alexander.Trofimov
2017-10-24 19:16:23 +03:00
parent abb6244bdd
commit c794328f59
2 changed files with 3 additions and 2 deletions

View File

@ -172,6 +172,7 @@ exports.EDITOR_TYPE_CONVERTATION = 3;
exports.PACKAGE_TYPE_OS = 0;
exports.PACKAGE_TYPE_I = 1;
exports.PACKAGE_TYPE_D = 2;
exports.REDIS_KEY_PUBSUB = 'pubsub';
exports.REDIS_KEY_SAVE_LOCK = 'savelock:';

View File

@ -99,8 +99,8 @@ exports.readLicense = function*() {
} else {
res.type = (yield* _getFileState()) ? c_LR.Success : c_LR.ExpiredTrial;
if (res.type === c_LR.Success) {
res.trial = true;
res.count = 2;
res.trial = (constants.PACKAGE_TYPE_D === oPackageType);
res.count = resMax.count;
return res;
}
}