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

页面修改

parent b966f73d
......@@ -4564,26 +4564,28 @@ namespace Mall.Module.Product
//进阶小课堂回调
if (demodel.TenantId == 27 && demodel.OrderStatus == OrderStatusEnum.Completed)
{
Task.Run(() =>
Task.Factory.StartNew(() =>
{
try
{
string url = Common.Config.JJSWAdminApi + "/api/Third/SynchronousMallOrder";
var postData =
new
{
Msg = new
new
{
OrderId = OrderId
}
};
Msg = new
{
OrderId = OrderId
}
};
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 });
}
......
......@@ -23,6 +23,7 @@ using Mall.Common.Enum.User;
using Mall.Repository.Education;
using Mall.ThirdCore.Adapay.Model;
using Newtonsoft.Json.Linq;
using System.Threading.Tasks;
namespace Mall.Module.User
{
......@@ -832,6 +833,32 @@ namespace Mall.Module.User
UserId = umodel.Id
});
#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;
}
......@@ -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);
}
try
Task.Factory.StartNew(() =>
{
string url = Common.Config.JJSWAdminApi + "/api/Third/SynchronousMallOrder";
var postData =
new
{
Msg = new
try
{
string url = Common.Config.JJSWAdminApi + "/api/Third/SynchronousMallOrder";
var postData =
new
{
OrderId = OrderId
}
};
string str = HttpHelper.HttpPost(url, Common.Plugin.JsonHelper.Serialize(postData));
}
catch
{
}
Msg = new
{
OrderId = OrderId
}
};
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;
}
......
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