标签:
下载StarUml 2.5 StarUML下载
修改 LicenseManagerDomain.js
function validate(PK, name, product, licenseKey) { var pk, decrypted; //添加注释的这块代码 /* return { name: "0xcb", product: "StarUML", licenseType: "vip", quantity: "bbs.chinapyg.com", licenseKey: "later equals never!" }; */ try { pk = new NodeRSA(PK); decrypted = pk.decrypt(licenseKey, ‘utf8‘); } catch (err) { return false; } var terms = decrypted.trim().split("\n"); if (terms[0] === name && terms[1] === product) { return { name: name, product: product, licenseType: terms[2], quantity: terms[3], licenseKey: licenseKey }; } else { return false; } }
(1)查找LicenseManagerDomain.js位置
命令:
dpkg -S staruml | grep LicenseManagerDomain.js
然后编辑文件
sudo gedit /opt/staruml/www/license/node/LicenseManagerDomain.js
标签:
原文地址:http://my.oschina.net/u/2361475/blog/506485