mirror of
http://git.coreshop.cn/jianweie/coreshoppro.git
synced 2026-02-05 10:29:50 +08:00
【修复】修复用户未定义性别的情况下,导致前端修改个人资料默认头像异常的情况。#I56WBO
This commit is contained in:
@@ -782,6 +782,10 @@ namespace CoreCms.Net.Web.WebApi.Controllers
|
||||
//收藏
|
||||
var collectionCount = await _goodsCollectionServices.GetCountAsync(p => p.userId == user.id);
|
||||
|
||||
if (user.sex != (int)GlobalEnumVars.UserSexTypes.女 || user.sex != (int)GlobalEnumVars.UserSexTypes.男 || user.sex != (int)GlobalEnumVars.UserSexTypes.未知)
|
||||
{
|
||||
user.sex = (int)GlobalEnumVars.UserSexTypes.未知;
|
||||
}
|
||||
|
||||
jm.data = new
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user