DuGuYang vor 1 Jahr
Ursprung
Commit
dd1004619f
1 geänderte Dateien mit 2 neuen und 2 gelöschten Zeilen
  1. 2 2
      Areas/Api/Controllers/v1/MainServer/ConsumersController.cs

+ 2 - 2
Areas/Api/Controllers/v1/MainServer/ConsumersController.cs

@@ -188,7 +188,7 @@ namespace MySystem.Areas.Api.Controllers.v1
                 mobile = mobile.Split('|')[1];
             }
             int ConsumerId = 0;
-            Consumers check = maindb.Consumers.FirstOrDefault(m => m.AlipayUserId == openid);
+            Consumers check = maindb.Consumers.FirstOrDefault(m => m.WechatOpenId == openid);
             if (check == null)
             {
                 check = maindb.Consumers.Add(new Consumers()
@@ -197,7 +197,7 @@ namespace MySystem.Areas.Api.Controllers.v1
                     NickName = filterEmoji(nickName),
                     HeadPhoto = avatarUrl,
                     Mobile = mobile,
-                    AlipayUserId = openid,
+                    WechatOpenId = openid,
                 }).Entity;
                 maindb.SaveChanges();
                 ConsumerId = check.Id;