fix 临时处理bug

This commit is contained in:
2024-02-23 18:07:03 +08:00
parent 0931d0bf53
commit bc812a30b9
5 changed files with 13 additions and 2 deletions

View File

@@ -2,6 +2,11 @@
public class BusinessPlaceShiftTinyResponse
{
/// <summary>
/// 无用字段,暂时不删除 //todo
/// </summary>
public string CustomCode { get; set; }
/// <summary>
/// 餐次名称
/// </summary>

View File

@@ -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

View File

@@ -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");
}

View File

@@ -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",

View File

@@ -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": {