refactoring package of globals and and some param for login

重构globals ,加上一些全局变量