250501 커밋
This commit is contained in:
@@ -1,19 +1,12 @@
|
||||
namespace BrokerCore.Common;
|
||||
|
||||
using System.Security.Cryptography;
|
||||
|
||||
using BrokerBusinessLog;
|
||||
|
||||
using DbEntity;
|
||||
|
||||
using Entity.Actions;
|
||||
using System.Security.Cryptography;
|
||||
|
||||
using MetaAssets;
|
||||
|
||||
using ServerCommon;
|
||||
using ServerCommon.BusinessLogDomain;
|
||||
|
||||
using ServerCore; using ServerBase;
|
||||
using ServerCore;
|
||||
|
||||
namespace BrokerApiCore;
|
||||
public class Helpers
|
||||
{
|
||||
public static string generateSecureKey(int keySizeInBytes = 32, bool isBase64 = true)
|
||||
@@ -46,25 +39,25 @@ public class Helpers
|
||||
Title = mailMeta.Mail_Title,
|
||||
Text = mailMeta.Mail_Desc,
|
||||
ExpireDate = expire_date,
|
||||
ItemList = getMailItems(productMeta).ToList(),
|
||||
ItemList = getMailItems(productMeta),
|
||||
PackageOrderId = string.Empty,
|
||||
};
|
||||
return mail_send_option;
|
||||
}
|
||||
|
||||
public static IEnumerable<MailItem> getMailItems(ProductMetaData productMetaData)
|
||||
public static List<ServerCommon.MailItem> getMailItems(ProductMetaData productMetaData)
|
||||
{
|
||||
if (productMetaData.ItemID_First != 0)
|
||||
{
|
||||
return productMetaData.First_List.Select(itemMeta => new MailItem()
|
||||
return productMetaData.First_List.Select(itemMeta => new ServerCommon.MailItem
|
||||
{
|
||||
ItemId = (UInt32)itemMeta.Id,
|
||||
Count = itemMeta.Value,
|
||||
ProductId = (UInt32)productMetaData.Id,
|
||||
isRepeatProduct = false
|
||||
});
|
||||
}).ToList();
|
||||
}
|
||||
return new List<MailItem>();
|
||||
return [];
|
||||
}
|
||||
|
||||
public static PlanetItemExchangeLogData createFromExchangeOrderLog(PlanetItemExchangeOrder order)
|
||||
|
||||
Reference in New Issue
Block a user