fix: enforce Waffo subscription compliance and product ID update (#5038)

* fix: enforce Waffo subscription compliance and product ID updates

* fix: hide Waffo Pancake settings in classic UI
This commit is contained in:
Seefs
2026-05-22 11:48:32 +08:00
committed by GitHub
parent 19f1821fc8
commit f2c7647ecf
3 changed files with 5 additions and 8 deletions
@@ -21,6 +21,10 @@ type SubscriptionWaffoPancakePayRequest struct {
}
func SubscriptionRequestWaffoPancakePay(c *gin.Context) {
if !requirePaymentCompliance(c) {
return
}
var req SubscriptionWaffoPancakePayRequest
if err := c.ShouldBindJSON(&req); err != nil || req.PlanId <= 0 {
common.ApiErrorMsg(c, "参数错误")