|
|
@@ -31,6 +31,10 @@ using System.Security.Cryptography;
|
|
|
using NHibernate.Hql.Ast;
|
|
|
using System.Security.Principal;
|
|
|
using Microsoft.SqlServer.Server;
|
|
|
+using System.Net.Http.Headers;
|
|
|
+using System.Net.Http;
|
|
|
+using System.Threading.Tasks;
|
|
|
+using System.Diagnostics;
|
|
|
|
|
|
namespace SiteCore
|
|
|
{
|
|
|
@@ -539,9 +543,6 @@ namespace SiteCore
|
|
|
}
|
|
|
|
|
|
}
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
}
|
|
|
sql = new StringBuilder();
|
|
|
sql.AppendFormat("select * from view_ErpTradeCell where orderstate=6 and unusualTag=0 and FinishPlaceTime is not null and DATEDIFF(HH,FinishPlaceTime,GETDATE())>3 and DATEDIFF(DAY,FinishPlaceTime,GETDATE())<20 and IsXianHuo=1 ;");
|
|
|
@@ -3705,5 +3706,48 @@ namespace SiteCore
|
|
|
}
|
|
|
return result;
|
|
|
}
|
|
|
+
|
|
|
+ public static void sendOrderInfo(string tid, string order_status, string buyer_id, string buyer_nick, int type = 0)
|
|
|
+ {
|
|
|
+ Thread thread = new Thread(new ThreadStart(() =>
|
|
|
+ {
|
|
|
+ string url = "https://wx.lingtao8.com/api/v1/msg/new_order";
|
|
|
+ HttpClient client = new HttpClient();
|
|
|
+ string param = JsonConvert.SerializeObject(new
|
|
|
+ {
|
|
|
+ order_type = type,
|
|
|
+ order_id = tid,
|
|
|
+ buyer_nick = buyer_nick,
|
|
|
+ buyer_id = buyer_id,
|
|
|
+ order_status = order_status,
|
|
|
+ });
|
|
|
+ var request = new HttpRequestMessage
|
|
|
+ {
|
|
|
+ Method = HttpMethod.Post,
|
|
|
+ RequestUri = new Uri(url),
|
|
|
+
|
|
|
+ Content = new StringContent(param)
|
|
|
+ {
|
|
|
+ Headers =
|
|
|
+ {
|
|
|
+ ContentType = new MediaTypeHeaderValue("application/json")
|
|
|
+ }
|
|
|
+ }
|
|
|
+ };
|
|
|
+
|
|
|
+ try
|
|
|
+ {
|
|
|
+ var response = client.SendAsync(request).Result;
|
|
|
+ response.EnsureSuccessStatusCode();
|
|
|
+ }
|
|
|
+ catch (Exception e)
|
|
|
+ {
|
|
|
+ }
|
|
|
+
|
|
|
+ }));
|
|
|
+
|
|
|
+ thread.Start();
|
|
|
+
|
|
|
+ }
|
|
|
}
|
|
|
}
|