mirror of
https://github.com/casdoor/casdoor.git
synced 2025-07-02 11:20:18 +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