From d856b2d3c85f39a2908de47ad1934e34805591e4 Mon Sep 17 00:00:00 2001
From: liaoxujun@qq.com <liaoxujun@qq.com>
Date: 星期五, 22 三月 2024 14:00:32 +0800
Subject: [PATCH] 完成供应商货博主管理页面
---
CoreCms.Net.Services/Order/CoreCmsOrderServices.cs | 27 +++++++++++++++++++++++++--
1 files changed, 25 insertions(+), 2 deletions(-)
diff --git a/CoreCms.Net.Services/Order/CoreCmsOrderServices.cs b/CoreCms.Net.Services/Order/CoreCmsOrderServices.cs
index 13a4eac..6fd72f7 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
@@ -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