update:优化二维码长度

This commit is contained in:
2021-04-21 17:00:16 +08:00
parent 4cf18f0b83
commit 88ce4f7026
6 changed files with 103 additions and 11 deletions

View File

@@ -33,15 +33,14 @@ namespace Domain.AggregateModel.LinkAggregate
/// <param name="baseUrl"></param>
/// <param name="suffixUrl"></param>
/// <param name="appId">分配的应用id</param>
public Link(string baseUrl,string suffixUrl,int appId)
public Link(string baseUrl,string suffixUrl,string fullUrl,int appId,string shortCode)
{
BaseUrl = baseUrl;
SuffixUrl = suffixUrl;
FullUrl = new Uri(new Uri(baseUrl),suffixUrl).ToString();
FullUrl = fullUrl;
ShortCode = shortCode;
AppId = appId;
Time = DateTime.Now;
CalculateShortCode();
AddDomainEvent(new LinkCreatedDomainEvent(this));
}
/// <summary>