public int CheckGasCard(short com, int baud) { //读公司代码 long ret = ReadIcard(com, baud, 3); if (ret != 37729) { return -1; } return 0; }