mirror of
https://github.com/langgenius/dify.git
synced 2026-04-05 05:49:25 +08:00
fix usage get
This commit is contained in:
@@ -281,7 +281,7 @@ class FeatureService:
|
|||||||
def _fulfill_params_from_billing_api(cls, features: FeatureModel, tenant_id: str):
|
def _fulfill_params_from_billing_api(cls, features: FeatureModel, tenant_id: str):
|
||||||
billing_info = BillingService.get_info(tenant_id)
|
billing_info = BillingService.get_info(tenant_id)
|
||||||
|
|
||||||
features_usage_info = BillingService.get_tenant_feature_plan_usage_info(tenant_id)
|
features_usage_info = BillingService.get_quota_info(tenant_id)
|
||||||
|
|
||||||
features.billing.enabled = billing_info["enabled"]
|
features.billing.enabled = billing_info["enabled"]
|
||||||
features.billing.subscription.plan = billing_info["subscription"]["plan"]
|
features.billing.subscription.plan = billing_info["subscription"]["plan"]
|
||||||
|
|||||||
Reference in New Issue
Block a user