schangxiang@126.com
2025-04-02 74090a619fa7c7e37e78cc927db0f7b19762e5ae
Api/Util/AuthorizeHelper.cs
@@ -70,14 +70,19 @@
                    int waringDays = (int)input.WaringDays;
                    if (waringDays >= val.RemainingDays)
                    {
                        return AuthorizeFunRetEntity.Success("成功", val.RemainingDays, $"授权剩余天数{val.RemainingDays}小于{waringDays}天");
                        return AuthorizeFunRetEntity.Success("成功", val.RemainingDays, $"授权剩余天数{val.RemainingDays}小于{waringDays}天,到期日{newRet.expiryDate}");
                    }
                }
                return AuthorizeFunRetEntity.Success("成功", val.RemainingDays, newRet);
            }
            else
                return AuthorizeFunRetEntity.Fail("授权失败", val.RemainingDays, newRet);
            {
                if (string.IsNullOrEmpty(newRet.expiryDate))
                {
                    return AuthorizeFunRetEntity.Fail($"授权失败", val.RemainingDays, newRet);
                }
                return AuthorizeFunRetEntity.Fail($"授权失败,到期日{newRet.expiryDate}", val.RemainingDays, newRet);
            }
        }
    }