fix 临时处理bug
This commit is contained in:
@@ -2,6 +2,11 @@
|
||||
|
||||
public class BusinessPlaceShiftTinyResponse
|
||||
{
|
||||
/// <summary>
|
||||
/// 无用字段,暂时不删除 //todo
|
||||
/// </summary>
|
||||
public string CustomCode { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 餐次名称
|
||||
/// </summary>
|
||||
|
||||
@@ -159,6 +159,7 @@ public class BusinessPlaceShiftService : IBusinessPlaceShiftService
|
||||
.ToListAsync();
|
||||
|
||||
var list = new List<BusinessPlaceShiftTinyResponse>();
|
||||
|
||||
foreach (BusinessShiftMealRelationshipEntity shiftinfo in shifts)
|
||||
{
|
||||
var name = _dbContext.Queryable<BasicTypeEntity>()
|
||||
@@ -168,10 +169,12 @@ public class BusinessPlaceShiftService : IBusinessPlaceShiftService
|
||||
|
||||
var shift = new BusinessPlaceShiftTinyResponse
|
||||
{
|
||||
CustomCode = shiftinfo.Id.ToString(),
|
||||
Name = name,
|
||||
Start = shiftinfo.Start,
|
||||
End = shiftinfo.End
|
||||
};
|
||||
|
||||
list.Add(shift);
|
||||
}
|
||||
return new BusinessPlaceWithShiftResponse
|
||||
|
||||
@@ -204,7 +204,6 @@ public class GainfoService : IGainfoService
|
||||
return new NotFoundResult();
|
||||
}
|
||||
|
||||
var limit = configuration.GetSection("FaceUrlOptions:Limit").Get<int>();
|
||||
await _redisCache.HashSetAsync("faces", userCode, face.Face);
|
||||
return new FileContentResult(Convert.FromBase64String(face.Face), "image/png");
|
||||
}
|
||||
|
||||
@@ -9,6 +9,10 @@
|
||||
"CommonRequestUrl": "http://localhost:5001",
|
||||
"SysRequestUrl": "http://localhost:5003"
|
||||
},
|
||||
"FaceUrlOptions": {
|
||||
"Url": "http://localhost:5002/api/gainfos/face?token=",
|
||||
"Limit": 7200
|
||||
},
|
||||
"SwaggerOptions": {
|
||||
"Enable": true,
|
||||
"Authority": "https://yikatong.isawesome.cn/oauth2",
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
"SysRequestUrl": "http://sys"
|
||||
},
|
||||
"FaceUrlOptions": {
|
||||
"Url": "https://face.jinkosolar.com/api/basic/gainfos/face?token=",
|
||||
"Url": "https://yikatong.isawesome.cn/api/basic/gainfos/face?token=",
|
||||
"Limit": 7200
|
||||
},
|
||||
"SqlSugarOptions": {
|
||||
|
||||
Reference in New Issue
Block a user