判断是否失败
static bool isError(int code) { return code >= 4000 || code == READ_CARD_FAILED || code == INIT_FAIL; }