فهرست منبع

京东转链放弃纯口令,不进行转链

dodo hold 2 سال پیش
والد
کامیت
4d6b864a65

تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 0 - 0
molilian.api/Properties/PublishProfiles/https___ccr.ccs.tencentyun.com_shaobin.pubxml.user


+ 15 - 1
molilian.core/Plus/JDUnion/JdUnionPlus.cs

@@ -222,6 +222,19 @@ namespace molilian.core
         {
             string message = "OK";
             string url = GetLink(content);
+            if (string.IsNullOrEmpty(url))
+            {
+                result.success = false;
+                result.link_type = LinkTypeEnum.unknown;
+                result.channel_type = ChannelTypeEnum.jd;
+                result.message = "放弃转链";
+                result.reason = "纯口令";
+                result.accountName = string.Empty;
+                result.content = content;
+                result.shortLinkurl = url;
+                result.deeplink_url = GetDeeplink(url);
+                return result;
+            }
             string shortLinkurl = url;
             var plus = new JdUnionPlus(account.app_key, account.app_secret);
 
@@ -235,7 +248,8 @@ namespace molilian.core
                 result.success = false;
                 result.link_type = LinkTypeEnum.unknown;
                 result.channel_type = ChannelTypeEnum.jd;
-                result.message = "其他推广链接";
+                result.message = "放弃转链";
+                result.reason = "其他推广链接";
                 result.accountName = string.Empty;
                 result.content = content;
                 result.shortLinkurl = url;

برخی فایل ها در این مقایسه diff نمایش داده نمی شوند زیرا تعداد فایل ها بسیار زیاد است