Browse Source

订单支付成功,关联创客

lcl 1 year ago
parent
commit
d1ebc40164
1 changed files with 2 additions and 0 deletions
  1. 2 0
      AppStart/Helper/WeChatPayBackService.cs

+ 2 - 0
AppStart/Helper/WeChatPayBackService.cs

@@ -57,6 +57,8 @@ namespace MySystem
                                         order.UpdateDate = DateTime.Now;
                                         order.PayMoney = order.PayMoney * 10000;
                                         order.MaxDivi = order.MaxDivi * 10000;
+                                        MerchantInfo merchant = db.MerchantInfo.FirstOrDefault(m => m.Id == order.MerchantId) ?? new MerchantInfo();
+                                        order.UserId = merchant.UserId;
                                         db.SaveChanges();
                                         RedisDbconn.Instance.AddList("ConsumerOrdersStat", order.Id);
                                         RedisDbconn.Instance.AddList("ConsumerOrders:Divi:List", order.Id.ToString());