Kaynağa Gözat

头像去除路径头

DuGuYang 1 yıl önce
ebeveyn
işleme
204b43eb5a

+ 1 - 1
Areas/Api/Controllers/v1/MainServer/UsersController.cs

@@ -43,7 +43,7 @@ namespace MySystem.Areas.Api.Controllers.v1
             KxsMainModels.Users query = kxsdb.Users.FirstOrDefault(m => m.Id == Id) ?? new KxsMainModels.Users();
             string IdString = Id.ToString();
             Obj.Add("RealName", query.RealName); //真实姓名
-            Obj.Add("HeadPhoto", DefaultPic(query.HeadPhoto)); //头像
+            Obj.Add("HeadPhoto", query.HeadPhoto); //头像
             // Obj.Add("UserLevel", query.UserLevel); //创客实际等级
             DateTime now = DateTime.Now;
             UserRankWhite rank = maindb.UserRankWhite.FirstOrDefault(m => m.Id == Id && m.UpdateDate > now) ?? new UserRankWhite();