123456789101112131415161718192021 |
- const { execSync } = require('child_process');
- const path = require('path');
- const _getDevicesId = () => execSync(path.join(__dirname, './check.exe getDevicesId')).toString('utf-8').trim()
- const _regeditKey = (devicesId, code) => execSync(path.join(__dirname, `./check.exe regeditKey ${devicesId} ${code}`)).toString('utf-8').trim()
- const _validate = () => execSync(path.join(__dirname, './check.exe validate')).toString('utf-8').trim()
- const getDevicesId = () => _getDevicesId()
- const regeditKey = (devicesId, code) => _regeditKey(devicesId, code)
- const validate = () => _validate()
- module.exports = {
- getDevicesId,
- regeditKey,
- validate
- }
|