Commit f819ff8d authored by 吴春's avatar 吴春

提交代码

parent e3fecff9
...@@ -68,8 +68,9 @@ namespace Mall.Module.Product ...@@ -68,8 +68,9 @@ namespace Mall.Module.Product
{ {
return ApiResult.Failed("订单信息不存在,请核实后再试"); return ApiResult.Failed("订单信息不存在,请核实后再试");
} }
var umodel = member_UserRepository.GetEntity(model.UserId??0); var umodel = member_UserRepository.GetEntity(model.UserId ?? 0);
if (umodel == null) { if (umodel == null)
{
return ApiResult.Failed("订单用户不存在,请核实后再试"); return ApiResult.Failed("订单用户不存在,请核实后再试");
} }
//查询订单明细 //查询订单明细
...@@ -88,8 +89,10 @@ namespace Mall.Module.Product ...@@ -88,8 +89,10 @@ namespace Mall.Module.Product
} }
} }
model.DetailList = dlist; model.DetailList = dlist;
//地址 //地址
model.DistrictAddress = (destinationRepository.GetEntity(model.Province)?.Name ?? "") + " " + (destinationRepository.GetEntity(model.City)?.Name ?? "") + " " + (destinationRepository.GetEntity(model.District)?.Name ?? ""); model.DistrictAddress = ((model.Province.HasValue && model.Province.Value > 0) ? (destinationRepository.GetEntity(model.Province)?.Name ?? "") : "") + " " + ((model.City.HasValue && model.City.Value > 0) ? (destinationRepository.GetEntity(model.City)?.Name ?? ""):"") + " " + ((model.District.HasValue && model.District.Value > 0) ? (destinationRepository.GetEntity(model.District)?.Name ?? ""):"");
model.IsCanApplyForAfterSale = 2; model.IsCanApplyForAfterSale = 2;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment