fix bug
parent
d564354f82
commit
4acb240b73
5
app.py
5
app.py
|
@ -96,9 +96,10 @@ def GenerateLicense(Type : LicenseType, Count : int, UserName : str, MajorVersio
|
|||
0, # No Games flag. 0 means "NoGames = false". But it does not work.
|
||||
0) # No Plugins flag. 0 means "NoPlugins = false". But it does not work.
|
||||
EncodedLicenseString = VariantBase64Encode(EncryptBytes(0x787, LicenseString.encode())).decode()
|
||||
with zipfile.ZipFile(EncodedLicenseString, 'w') as f:
|
||||
FileName = EncodedLicenseString.replace('/','').replace('\\','')
|
||||
with zipfile.ZipFile(FileName, 'w') as f:
|
||||
f.writestr('Pro.key', data = EncodedLicenseString)
|
||||
return EncodedLicenseString
|
||||
return FileName
|
||||
|
||||
|
||||
@app.route('/gen')
|
||||
|
|
Loading…
Reference in New Issue