generallibrary/src/main/java/com/dayu/general/tool/NfcReadHelper.kt
@@ -18,11 +18,11 @@ /** * 单例初始化 */ @JvmStatic fun getInstance(intent: Intent, activity: Activity): NfcReadHelper { if (helper == null) { helper = NfcReadHelper(intent, activity) } helper!!.adapter.setIntent(intent) return helper!! } } @@ -41,6 +41,18 @@ } } fun getCardNumberNoClose():String{ return try { adapter.cardNumberNoClose } catch (e: Exception) { e.printStackTrace() "" } } /** * 获取卡片类型和卡号 */