Api简单升级

调整了一下Fail的条件；升级了一下Demo
Merge pull request #1 from zxlie/master

Api简单升级