update:优化二维码长度
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user