nancy.liao
2025-05-29 8d405b265285c368df2e9cf1c14acee7532e0ee7
src/library/LicenseReader.cpp
@@ -80,13 +80,14 @@
          *  sw_version_to = (optional int)
          *  from_date = YYYY-MM-DD (optional)
          *  to_date  = YYYY-MM-DD (optional)
          *  client_signature = XXXX-XXXX-XXXX-XXXX (optional string 16)
          *  client_signature = XXXX-XXXX-XXXX (optional string 16)
          *  sig = XXXXXXXXXX (mandatory, 1024)
          *  application_data = xxxxxxxxx (optional string 16)
          */
         const char *license_signature = ini.GetValue(productNamePtr, LICENSE_SIGNATURE, nullptr);
         long license_version = ini.GetLongValue(productNamePtr, LICENSE_VERSION, -1);
         if (license_signature != nullptr && license_version == 200) {
         //没有用这个license_version了 不需要读
         // long license_version = ini.GetLongValue(productNamePtr, LICENSE_VERSION, -1);
         if (license_signature != nullptr /*&& license_version == 200*/) {
            CSimpleIniA::TNamesDepend keys;
            ini.GetAllKeys(productNamePtr, keys);
            FullLicenseInfo licInfo(*it, product, license_signature);
@@ -117,9 +118,6 @@
      }
   }
#ifndef NDEBUG
   cout << "license to sign [" << oss.str() << "]" << endl;
#endif
   return oss.str();
}