controller文件判断更加安全