mirror of
https://github.com/casdoor/casdoor.git
synced 2025-09-08 12:11:03 +08:00
fix: fix bug in Pricing (#2255)
This commit is contained in:
@@ -283,6 +283,9 @@ func CreateProductForPlan(plan *Plan) *Product {
|
||||
Providers: plan.PaymentProviders,
|
||||
State: "Published",
|
||||
}
|
||||
if product.Providers == nil {
|
||||
product.Providers = []string{}
|
||||
}
|
||||
return product
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user