From 9496fec9e6054f6af6b5ddcc81a808f77f041d1d Mon Sep 17 00:00:00 2001
From: 移动系统liao <liaoxujun@qq.com>
Date: 星期五, 26 四月 2024 10:56:57 +0800
Subject: [PATCH] no message

---
 CoreCms.Net.Services/Order/CoreCmsOrderServices.cs |   29 ++++++++++++++++++++++++++---
 1 files changed, 26 insertions(+), 3 deletions(-)

diff --git a/CoreCms.Net.Services/Order/CoreCmsOrderServices.cs b/CoreCms.Net.Services/Order/CoreCmsOrderServices.cs
index 13a4eac..6f44512 100644
--- a/CoreCms.Net.Services/Order/CoreCmsOrderServices.cs
+++ b/CoreCms.Net.Services/Order/CoreCmsOrderServices.cs
@@ -1,7 +1,7 @@
 /***********************************************************************
- *            Project: CoreCms
+ *            Project: baifenBinfa
  *        ProjectName: 鐧惧垎鍏垫硶绠$悊绯荤粺                               
- *                Web: hhtp://chuanyin.com                     
+ *                Web: http://chuanyin.com                     
  *             Author:                                        
  *              Email:                               
  *         CreateTime: 202403/02   
@@ -38,6 +38,7 @@
 using SKIT.FlurlHttpClient.Wechat.Api.Models;
 using SqlSugar;
 using Yitter.IdGenerator;
+using static SKIT.FlurlHttpClient.Wechat.Api.Models.ChannelsECLeagueHeadSupplierOrderGetResponse.Types.CommssionOrder.Types.OrderDetail.Types;
 
 
 namespace CoreCms.Net.Services
@@ -1650,7 +1651,7 @@
             {
                 if (payStatus == (int)GlobalEnumVars.OrderPayStatus.No)
                 {
-                    html.Append("<a class='layui-btn layui-btn-xs pay-order' lay-active='payOrder' data-id='" + orderId + "'>鏀粯</a><br>");
+                    //html.Append("<a class='layui-btn layui-btn-xs pay-order' lay-active='payOrder' data-id='" + orderId + "'>鏀粯</a><br>");
                     html.Append("<a class='layui-btn layui-btn-xs edit-order' lay-active='editOrder' data-id='" + orderId + "'>缂栬緫</a><br>");
                     html.Append("<a class='layui-btn layui-btn-xs cancel-order' lay-active='cancelOrder' data-id='" + orderId + "'>鍙栨秷</a><br>");
                 }
@@ -2121,7 +2122,29 @@
                     createTime = DateTime.Now
                 };
                 await _orderLogServices.InsertAsync(orderLog);
+                //鐧惧垎鍏垫硶鐗规畩濂栧姳
+                var allConfigs = await _settingServices.GetConfigDictionaries();
+                var pointExchangeModel = CommonHelper.GetConfigDictionary(allConfigs, SystemSettingConstVars.DictionaryAchievementOnOff).ObjectToInt();
+                if (pointExchangeModel == 1)
+                {
+                    //寮�鍚笟缁╁鍔辨ā寮�
+                    var user = await _userServices.QueryByIdAsync(orderInfo.userId, isDataCache: true, cacheTimes: 1);
+                    if (user.parentId != 0)
+                    {
+                        //濡傛灉鏄�
+                        CreateDAOrderInParam data = new CreateDAOrderInParam
+                        {
+                            Money = money,
+                            OderId = orderInfo.orderId,
+                            SourceTypes = GlobalEnumVars.UserBalanceSourceTypes.GoodsOder,
+                            UserID = user.parentId,
 
+
+                        };
+                        //缁忛攢鍟嗕笟鍔¤鍗曠粨绠�
+                        await _redisOperationRepository.ListLeftPushAsync(RedisMessageQueueKey.DistributionAchievementOder, JsonConvert.SerializeObject(data));
+                    }
+                }
                 //璁㈠崟瀹屾垚缁撶畻璁㈠崟
                 await _redisOperationRepository.ListLeftPushAsync(RedisMessageQueueKey.OrderFinishCommand, orderInfo.orderId);
 

--
Gitblit v1.9.1