mirror of
https://github.com/ONLYOFFICE/server.git
synced 2026-04-07 14:04:35 +08:00
[feature] Add customer_id info to index.html
This commit is contained in:
@ -53,7 +53,8 @@ exports.readLicense = function*() {
|
||||
hasLicense: false,
|
||||
plugins: false,
|
||||
buildDate: oBuildDate,
|
||||
endDate: null
|
||||
endDate: null,
|
||||
customerId: ""
|
||||
}, null];
|
||||
};
|
||||
|
||||
|
||||
@ -152,14 +152,14 @@ docsCoServer.install(server, () => {
|
||||
app.get('/index.html', (req, res) => {
|
||||
let buildVersion = commonDefines.buildVersion;
|
||||
let buildNumber = commonDefines.buildNumber;
|
||||
let buildDate, packageType, mode = "";
|
||||
let buildDate, packageType, customerId = "";
|
||||
if (licenseInfo) {
|
||||
buildDate = licenseInfo.buildDate.toISOString();
|
||||
packageType = licenseInfo.packageType;
|
||||
mode = licenseInfo.mode;
|
||||
customerId = licenseInfo.customerId;
|
||||
}
|
||||
let output = `Server is functioning normally. Version: ${buildVersion}. Build: ${buildNumber}`;
|
||||
output += `. Release date: ${buildDate}. Package type: ${packageType}. Mode: ${mode}`;
|
||||
output += `. Release date: ${buildDate}. Package type: ${packageType}. Customer Id: ${customerId}`;
|
||||
res.send(output);
|
||||
});
|
||||
const rawFileParser = bodyParser.raw(
|
||||
|
||||
Reference in New Issue
Block a user