| | |
| | | /*********************************************************************** |
| | | * Project: CoreCms |
| | | * Project: baifenBinfa |
| | | * ProjectName: 百分兵法管理系统 |
| | | * Web: hhtp://chuanyin.com |
| | | * Web: http://chuanyin.com |
| | | * Author: |
| | | * Email: |
| | | * CreateTime: 202403/02 |
| | |
| | | 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 |
| | |
| | | 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); |
| | | |