refactory code.
Merge branch 'master' of github.com:tangxuehua/ecommon