Commit 0d18bb67 authored by 黄奎's avatar 黄奎

页面修改

parent b966f73d
...@@ -4564,26 +4564,28 @@ namespace Mall.Module.Product ...@@ -4564,26 +4564,28 @@ namespace Mall.Module.Product
//进阶小课堂回调 //进阶小课堂回调
if (demodel.TenantId == 27 && demodel.OrderStatus == OrderStatusEnum.Completed) if (demodel.TenantId == 27 && demodel.OrderStatus == OrderStatusEnum.Completed)
{ {
Task.Run(() =>
Task.Factory.StartNew(() =>
{ {
try try
{ {
string url = Common.Config.JJSWAdminApi + "/api/Third/SynchronousMallOrder"; string url = Common.Config.JJSWAdminApi + "/api/Third/SynchronousMallOrder";
var postData = var postData =
new new
{
Msg = new
{ {
OrderId = OrderId Msg = new
} {
}; OrderId = OrderId
}
};
string str = HttpHelper.HttpPost(url, Common.Plugin.JsonHelper.Serialize(postData)); string str = HttpHelper.HttpPost(url, Common.Plugin.JsonHelper.Serialize(postData));
Common.Plugin.LogHelper.WriteInfo("SetAppletGoodsOrderInfo_更新小课堂订单::" + OrderId + " Result::" + str);
} }
catch catch(Exception ex)
{ {
Common.Plugin.LogHelper.Write(ex, "SetAppletGoodsOrderInfo_更新小课堂订单::" + OrderId);
} }
}); }, TaskCreationOptions.LongRunning);
} }
return ApiResult.Success("", new { OrderId,demodel.OrderStatus }); return ApiResult.Success("", new { OrderId,demodel.OrderStatus });
} }
......
...@@ -23,6 +23,7 @@ using Mall.Common.Enum.User; ...@@ -23,6 +23,7 @@ using Mall.Common.Enum.User;
using Mall.Repository.Education; using Mall.Repository.Education;
using Mall.ThirdCore.Adapay.Model; using Mall.ThirdCore.Adapay.Model;
using Newtonsoft.Json.Linq; using Newtonsoft.Json.Linq;
using System.Threading.Tasks;
namespace Mall.Module.User namespace Mall.Module.User
{ {
...@@ -832,6 +833,32 @@ namespace Mall.Module.User ...@@ -832,6 +833,32 @@ namespace Mall.Module.User
UserId = umodel.Id UserId = umodel.Id
}); });
#endregion #endregion
//进阶小课堂 HK 2022-11-16新增
if (umodel.MallBaseId == 17)
{
Task.Factory.StartNew(() =>
{
try
{
string url = Common.Config.JJSWAdminApi + "/api/Third/SynchronousMallOrder";
var postData =
new
{
Msg = new
{
OrderId = OrderId
}
};
string str = HttpHelper.HttpPost(url, Common.Plugin.JsonHelper.Serialize(postData));
Common.Plugin.LogHelper.WriteInfo("InsertOrderPayInfo_更新小课堂订单::" + OrderId + " Result::" + str);
}
catch(Exception ex)
{
Common.Plugin.LogHelper.Write(ex, "InsertOrderPayInfo_更新小课堂订单::" + OrderId);
}
}, TaskCreationOptions.LongRunning);
}
} }
return flag; return flag;
} }
...@@ -2638,24 +2665,28 @@ namespace Mall.Module.User ...@@ -2638,24 +2665,28 @@ namespace Mall.Module.User
} }
appletWeChatModule.SendOrderSucceedMsg(oldOrder.TenantId, oldOrder.MallBaseId, umodel.OpenId, oldOrder.OrderNo, oldOrder.CreateDate.Value.ToString("yyyy-MM-dd HH:mm:ss"), (oldOrder.Income ?? 0).ToString(), goodsName); appletWeChatModule.SendOrderSucceedMsg(oldOrder.TenantId, oldOrder.MallBaseId, umodel.OpenId, oldOrder.OrderNo, oldOrder.CreateDate.Value.ToString("yyyy-MM-dd HH:mm:ss"), (oldOrder.Income ?? 0).ToString(), goodsName);
} }
try
Task.Factory.StartNew(() =>
{ {
string url = Common.Config.JJSWAdminApi + "/api/Third/SynchronousMallOrder"; try
var postData = {
new string url = Common.Config.JJSWAdminApi + "/api/Third/SynchronousMallOrder";
{ var postData =
Msg = new new
{ {
OrderId = OrderId Msg = new
} {
}; OrderId = OrderId
string str = HttpHelper.HttpPost(url, Common.Plugin.JsonHelper.Serialize(postData)); }
} };
catch string str = HttpHelper.HttpPost(url, Common.Plugin.JsonHelper.Serialize(postData));
{ Common.Plugin.LogHelper.WriteInfo("InsertAdapayOrderTrade_更新小课堂订单::" + OrderId + " Result::" + str);
}
} catch(Exception ex)
{
Common.Plugin.LogHelper.Write(ex, "InsertAdapayOrderTrade_更新小课堂订单::" + OrderId);
}
}, TaskCreationOptions.LongRunning);
return flag; return flag;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment