| | |
| | | package com.dayu.general.bean.card |
| | | |
| | | import com.dayu.baselibrary.dao.AppDatabase |
| | | import com.dayu.baselibrary.tools.HexUtil |
| | | import com.dayu.general.bean.db.CardData |
| | | import com.dayu.general.dao.AppDataBase |
| | | import com.dayu.general.tool.CardCommon |
| | | import com.tencent.bugly.crashreport.CrashReport |
| | | |
| | | open class BaseCard { |
| | | var cardData: String? = null //标识码 |
| | | |
| | | companion object { |
| | | |
| | | const val IDENTIFY_CODE_A0 = 0xA0.toByte() // 识别码A0 |
| | | const val IDENTIFY_CODE_B1 = 0xB1.toByte() // 识别码B1 |
| | | const val IDENTIFY_CODE_C2 = 0xC2.toByte() // 识别码C2 |
| | | const val IDENTIFY_CODE_89 = 0x89.toByte() // 识别码89 |
| | | } |
| | | |
| | | |
| | | fun setCardData(baseDao: AppDataBase, cardType: String?) { |
| | | try { |
| | | val cardDataBean: CardData = |