mirror of
https://github.com/casdoor/casdoor.git
synced 2025-05-22 18:25:47 +08:00
fix: fix bug in Pricing (#2255)
This commit is contained in:
parent
739a9bcd0d
commit
9da2f0775f
@ -283,6 +283,9 @@ func CreateProductForPlan(plan *Plan) *Product {
|
|||||||
Providers: plan.PaymentProviders,
|
Providers: plan.PaymentProviders,
|
||||||
State: "Published",
|
State: "Published",
|
||||||
}
|
}
|
||||||
|
if product.Providers == nil {
|
||||||
|
product.Providers = []string{}
|
||||||
|
}
|
||||||
return product
|
return product
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -36,6 +36,7 @@ class PlanListPage extends BaseListPage {
|
|||||||
pricePerYear: 100,
|
pricePerYear: 100,
|
||||||
currency: "USD",
|
currency: "USD",
|
||||||
isEnabled: true,
|
isEnabled: true,
|
||||||
|
paymentProviders: [],
|
||||||
role: "",
|
role: "",
|
||||||
options: [],
|
options: [],
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user