ecs/servers/game/data_old/monthly_card_ext.go
2025-06-04 18:17:39 +08:00

16 lines
516 B
Go

package data
import "github.com/oylshe1314/framework/errors"
func (this *MonthlyCardTable) check() error {
for _, d := range this.l {
if len(d.ActiveNumList) != len(d.ActiveRewardList) {
return errors.Error("incorrect 'MonthlyCard' table, error: len(d.ActiveNumList) != len(d.ActiveRewardList), id: ", d.id())
}
if len(d.PrivilegeArg) != len(d.PrivilegeType) {
return errors.Error("incorrect 'MonthlyCard' table, error: len(d.PrivilegeArg) != len(d.PrivilegeType), id: ", d.id())
}
}
return nil
}