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