增加支付成功语音提示;增加扫码支付;

This commit is contained in:
2026-03-10 09:41:34 +08:00
parent 6c857dd1f7
commit 7bcb74d9e0
7 changed files with 489 additions and 7 deletions
@@ -157,7 +157,7 @@ abstract class BaseActivity<VB : ViewBinding> : AppCompatActivity() {
override fun onScanSuccess(barcode: String?) {
Timber.d("onScanSuccess barcode = $barcode")
if (barcode == null) return
handleScanKeyInfo(barcode)
scanGunKeyEventCallback(barcode)
}
})
}
@@ -166,12 +166,8 @@ abstract class BaseActivity<VB : ViewBinding> : AppCompatActivity() {
/**
* 处理扫描枪数据
*/
protected open fun handleScanKeyInfo(scanInfo: String) {
var payCode = scanInfo
//if (scanInfo.length > 6) {
// payCode = scanInfo.take(6)
//}
Log.d("TAG", "handleScanKeyInfo: " + payCode)
open fun scanGunKeyEventCallback(scanInfo: String) {
Timber.tag("TAG").d("handleScanKeyInfo: $scanInfo")
}
override fun dispatchKeyEvent(event: KeyEvent): Boolean {