13 lines
305 B
Go
13 lines
305 B
Go
package data
|
|
|
|
import "github.com/oylshe1314/framework/errors"
|
|
|
|
func (this *IdleProfitTable) check() error {
|
|
for _, d := range this.l {
|
|
if len(d.ItemNum) != len(d.ItemId) {
|
|
return errors.Error("incorrect 'IdleProfit' table, error: len(d.ItemNum) != len(d.ItemId), id: ", d.id())
|
|
}
|
|
}
|
|
return nil
|
|
}
|