develop
parent
61b94f112c
commit
46ef595570
|
|
@ -206,6 +206,47 @@ namespace New_College.Model
|
|||
public string id { get; set; }
|
||||
}
|
||||
|
||||
|
||||
|
||||
public class UnImglistobject
|
||||
{
|
||||
public UnImglistResult result { get; set; }
|
||||
public string code { get; set; }
|
||||
public string message { get; set; }
|
||||
public string fullMessage { get; set; }
|
||||
public DateTime timestamp { get; set; }
|
||||
public bool isSuccess { get; set; }
|
||||
}
|
||||
|
||||
public class UnImglistResult
|
||||
{
|
||||
public int numId { get; set; }
|
||||
public string code { get; set; }
|
||||
public string cnName { get; set; }
|
||||
public string provinceName { get; set; }
|
||||
public string logoUrl { get; set; }
|
||||
public string[] features { get; set; }
|
||||
public int hits { get; set; }
|
||||
public Url[] urls { get; set; }
|
||||
}
|
||||
|
||||
public class Url
|
||||
{
|
||||
public string description { get; set; }
|
||||
public string url { get; set; }
|
||||
public bool isBanner { get; set; }
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
public class Address
|
||||
{
|
||||
public string name { get; set; }
|
||||
|
|
|
|||
|
|
@ -2082,7 +2082,22 @@ namespace New_College.Services
|
|||
Web = string.IsNullOrEmpty(university.Web) ? "暂无" : university.Web,
|
||||
// Description = ClearHtmlHelper.SHTML(university.Description),
|
||||
};
|
||||
models.Imglist = universityimglist.Where(e => e.UniversityId == university.Id).Select(c => c.ImgList).FirstOrDefault();
|
||||
|
||||
|
||||
|
||||
if (universityimglist.Where(e => e.UniversityId == university.Id).Any() && universityimglist.Where(e => e.UniversityId == university.Id).Select(c => c.ImgList).Count() > 0)
|
||||
{
|
||||
models.Imglist = universityimglist.Where(e => e.UniversityId == university.Id).Select(c => c.ImgList).FirstOrDefault();
|
||||
}
|
||||
else
|
||||
{
|
||||
var unimglist = HttpHelper.GetApi<UnImglistobject>("http://192.168.104.104:3000/", "youzy.dms.basiclib.api.college.image.get?collegeCode=" + university.UniversityCode + "", "");
|
||||
if (unimglist != null && unimglist.isSuccess)
|
||||
{
|
||||
|
||||
models.Imglist = unimglist.result.urls.Select(c => c.url).ToList().ToJson();
|
||||
}
|
||||
}
|
||||
models.VrUrl = universityimglist.Where(e => e.UniversityId == university.Id).Select(c => c.VRUrl).FirstOrDefault();
|
||||
|
||||
var baseinfo = tbinfo.Where(e => e.UniversityName == university.Name).FirstOrDefault();
|
||||
|
|
@ -2117,6 +2132,7 @@ namespace New_College.Services
|
|||
models.Belong = university.AscriptionName;
|
||||
}
|
||||
|
||||
|
||||
var undetail = HttpHelper.GetApi<UniversityDetailobject>("http://192.168.104.104:3000/", "youzy.dms.basiclib.api.college.bycode.get?code=" + university.UniversityCode + "", "");
|
||||
if (undetail != null && undetail.isSuccess)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue