|
|
@@ -1,5 +1,6 @@
|
|
|
using dodohold.core;
|
|
|
using Microsoft.AspNetCore.Mvc;
|
|
|
+using StackExchange.Redis;
|
|
|
using System.Diagnostics;
|
|
|
using System.Text.Json;
|
|
|
using TencentCloud.Tcm.V20210413.Models;
|
|
|
@@ -71,6 +72,8 @@ namespace molilian.core
|
|
|
result.subCode = TkSubCodeEnum.NoConvert;
|
|
|
return result;
|
|
|
}
|
|
|
+
|
|
|
+
|
|
|
var data = response.Body.Data.Auctions[0].Result;
|
|
|
result.itemId = data.InputItemId;
|
|
|
result.couponAmount = (decimal)data.CouponAmount;
|
|
|
@@ -80,7 +83,19 @@ namespace molilian.core
|
|
|
string url = data.Url;
|
|
|
if (url.StartsWith("//")) url = $"https:{url}";
|
|
|
result.shortLinkurl = url;
|
|
|
- result.deeplink_url = AlimamaPlus.GetDeeplink(url);
|
|
|
+ result.deeplink_url = GetDeeplink(result.shortLinkurl);
|
|
|
+
|
|
|
+ result.item_url = url;
|
|
|
+ result.item_deeplink_url = result.deeplink_url;
|
|
|
+
|
|
|
+ string couponShareUrl = data.CouponShareUrl;
|
|
|
+ if (_account.useCouponLinkFirst && !string.IsNullOrEmpty(couponShareUrl))
|
|
|
+ {
|
|
|
+ if (couponShareUrl.StartsWith("//")) couponShareUrl = $"https:{couponShareUrl}";
|
|
|
+ result.shortLinkurl = couponShareUrl;
|
|
|
+ result.deeplink_url = GetDeeplink(couponShareUrl);
|
|
|
+ }
|
|
|
+
|
|
|
result.mktId = data.ItemId;
|
|
|
result.itemName = data.Title;
|
|
|
if (decimal.TryParse(data.PriceAfterCoupon, out decimal promotionPrice))
|