update demo mode detection
Merge branch 'master' of https://github.com/hisapi/his