mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-09-06 11:34:57 +02:00
Revert "Add missing param"
This reverts commit 41715f145d1ff47b95d870ff8f224e778b25e695.
This commit is contained in:
parent
33ab78155f
commit
9f138d86b1
3 changed files with 4 additions and 12 deletions
|
@ -291,7 +291,7 @@ namespace MediaBrowser.Api
|
||||||
|
|
||||||
public async Task Post(RegisterAppstoreSale request)
|
public async Task Post(RegisterAppstoreSale request)
|
||||||
{
|
{
|
||||||
var success = await _securityManager.RegisterAppStoreSale(request.Store, request.Application, request.Product, request.Feature, request.Type, request.StoreId, request.StoreToken, request.Email, request.Amount);
|
var success = await _securityManager.RegisterAppStoreSale(request.Store, request.Application, request.Product, request.Type, request.StoreId, request.StoreToken, request.Email, request.Amount);
|
||||||
if (!success) throw new ApplicationException("Error registering store sale");
|
if (!success) throw new ApplicationException("Error registering store sale");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -186,7 +186,7 @@ namespace MediaBrowser.Common.Implementations.Security
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public async Task<Boolean> RegisterAppStoreSale(string store, string application, string product, string feature,
|
public async Task<Boolean> RegisterAppStoreSale(string store, string application, string product,
|
||||||
string type, string storeId, string storeToken, string email, string amt)
|
string type, string storeId, string storeToken, string email, string amt)
|
||||||
{
|
{
|
||||||
var data = new Dictionary<string, string>()
|
var data = new Dictionary<string, string>()
|
||||||
|
@ -194,7 +194,6 @@ namespace MediaBrowser.Common.Implementations.Security
|
||||||
{"store", store},
|
{"store", store},
|
||||||
{"application", application},
|
{"application", application},
|
||||||
{"product", product},
|
{"product", product},
|
||||||
{"feature", feature},
|
|
||||||
{"type", type},
|
{"type", type},
|
||||||
{"storeId", storeId},
|
{"storeId", storeId},
|
||||||
{"token", storeToken},
|
{"token", storeToken},
|
||||||
|
@ -202,16 +201,9 @@ namespace MediaBrowser.Common.Implementations.Security
|
||||||
{"amt", amt}
|
{"amt", amt}
|
||||||
};
|
};
|
||||||
|
|
||||||
var options = new HttpRequestOptions()
|
|
||||||
{
|
|
||||||
Url = AppstoreRegUrl,
|
|
||||||
CancellationToken = CancellationToken.None
|
|
||||||
};
|
|
||||||
options.RequestHeaders.Add("X-Emby-Token", /*_appHost.SystemId*/ "08606E86D043");
|
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
using (var json = await _httpClient.Post(options, data).ConfigureAwait(false))
|
using (var json = await _httpClient.Post(AppstoreRegUrl, data, CancellationToken.None).ConfigureAwait(false))
|
||||||
{
|
{
|
||||||
var reg = _jsonSerializer.DeserializeFromStream<RegRecord>(json);
|
var reg = _jsonSerializer.DeserializeFromStream<RegRecord>(json);
|
||||||
if (!String.IsNullOrEmpty(reg.key))
|
if (!String.IsNullOrEmpty(reg.key))
|
||||||
|
|
|
@ -45,7 +45,7 @@ namespace MediaBrowser.Common.Security
|
||||||
/// Register an appstore sale
|
/// Register an appstore sale
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <returns>true if successful</returns>
|
/// <returns>true if successful</returns>
|
||||||
Task<Boolean> RegisterAppStoreSale(string store, string application, string product, string feature,
|
Task<Boolean> RegisterAppStoreSale(string store, string application, string product,
|
||||||
string type, string storeId, string storeToken, string email, string amt);
|
string type, string storeId, string storeToken, string email, string amt);
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|
Loading…
Reference in a new issue