|
@@ -5373,6 +5373,10 @@ public class OrderController : BaseController
|
|
if (orderId.NotNullOrEmpty())
|
|
if (orderId.NotNullOrEmpty())
|
|
{
|
|
{
|
|
dto.Opinion = await _typeCache.GetAsync($"tmp_opinion_{orderId}{_sessionContext.UserId}", HttpContext.RequestAborted);
|
|
dto.Opinion = await _typeCache.GetAsync($"tmp_opinion_{orderId}{_sessionContext.UserId}", HttpContext.RequestAborted);
|
|
|
|
+ if (!string.IsNullOrEmpty(dto.Opinion))
|
|
|
|
+ {
|
|
|
|
+ dto.Opinion = await _typeCache.GetAsync($"tmp_opinion_{orderId}{dto.StepId}{_sessionContext.UserId}", HttpContext.RequestAborted);
|
|
|
|
+ }
|
|
dto.Content = (await _orderRepository.GetAsync(orderId, HttpContext.RequestAborted))?.Content;
|
|
dto.Content = (await _orderRepository.GetAsync(orderId, HttpContext.RequestAborted))?.Content;
|
|
}
|
|
}
|
|
|
|
|
|
@@ -5909,7 +5913,9 @@ public class OrderController : BaseController
|
|
public async Task TempSaveAsync([FromBody] StepTempInDto dto)
|
|
public async Task TempSaveAsync([FromBody] StepTempInDto dto)
|
|
{
|
|
{
|
|
if (dto.OrderId.IsNullOrEmpty() || dto.Opinion.IsNullOrEmpty()) return;
|
|
if (dto.OrderId.IsNullOrEmpty() || dto.Opinion.IsNullOrEmpty()) return;
|
|
- await _typeCache.SetAsync($"tmp_opinion_{dto.OrderId}{_sessionContext.UserId}", dto.Opinion, TimeSpan.FromDays(3),
|
|
|
|
|
|
+ //获取配置
|
|
|
|
+ int days = int.Parse(_systemSettingCacheManager.GetSetting(SettingConstants.TempOpinionDays)?.SettingValue[0]);
|
|
|
|
+ await _typeCache.SetAsync($"tmp_opinion_{dto.OrderId}{dto.StepId}{_sessionContext.UserId}", dto.Opinion, TimeSpan.FromDays(days),
|
|
HttpContext.RequestAborted);
|
|
HttpContext.RequestAborted);
|
|
}
|
|
}
|
|
|
|
|