Based on ThinkPHP RBAC, correct some bugs.