Commit fb0551fc authored by liudong1993's avatar liudong1993
parents 2c7fdf0a fede8b67
......@@ -3065,7 +3065,7 @@ namespace Mall.Module.User
int IsVip = 2;
if ((basicsModel?.IsEnableFXGrade ?? 0) == 1)
{
var gmodel = distributor_FXGradeRepository.GetEntity(model.FXGradeId);
var gmodel = distributor_FXGradeRepository.GetEntity((model.FXGradeId ?? 0));
GradeName = gmodel?.GradeName ?? "默认等级";
if (gmodel.IsGuest == 3)
{
......@@ -3079,7 +3079,7 @@ namespace Mall.Module.User
{
if (model.HPGradeId > 0)
{
var gmodel = distributor_HPGradeInfoRepository.GetEntity(model.HPGradeId);
var gmodel = distributor_HPGradeInfoRepository.GetEntity((model.HPGradeId ?? 0));
GradeName = gmodel?.GradeName ?? "";
}
}
......@@ -3087,7 +3087,7 @@ namespace Mall.Module.User
{
if (model.GradeId > 0)
{
var gmodel = distributor_GradeRepository.GetEntity(model.GradeId);
var gmodel = distributor_GradeRepository.GetEntity((model.GradeId ?? 0));
GradeName = gmodel?.Name ?? "默认等级";
}
}
......
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