Revert "去除方法上的校验"

This reverts commit 4a9b8286601bd20f190d0e025b9e3baee947faf2.