code: function (cb) {
      if ( cb === void 0 ) cb = function () {};
  
      if (!b$.App.getSerialNumber()) { return }
  
      var info = {
        machine: b$.App.getSerialNumber(),
        os: b$.App.getAppRunOnOS()
      };
      communication.commitMessage('/services/machine_register', info, cb);
    }
docs: 注册机器