|
@@ -185,7 +185,7 @@ public class DxGeneralQRScan extends BaseQRScan {
|
|
|
logContentSb .append("原始数据 = ").append(new Gson().toJson(ComRecData.bRec)).append(WARP)
|
|
|
.append("原始数据MyFunc转换 = ").append(MyFunc.ByteArrToHex(ComRecData.bRec)).append(WARP)
|
|
|
.append("qrData = ").append(qrData);
|
|
|
- UploadLogUtils.sendLogs(Constants.LogcatValue.LOG_NODE_QR,"",logLine,logContentSb.toString());
|
|
|
+ UploadLogUtils.sendLogs(false,Constants.LogcatValue.LOG_NODE_QR,"",logLine,logContentSb.toString());
|
|
|
onScanSuccess(qrData);
|
|
|
}
|
|
|
|
|
@@ -227,22 +227,17 @@ public class DxGeneralQRScan extends BaseQRScan {
|
|
|
statusEnum= InitStatusEnum.SUCCESS;
|
|
|
//todo "二维码-" + "USB-扫码头初始化成功...."
|
|
|
mHandler.removeMessages(3);
|
|
|
- String logLine = (new Throwable().getStackTrace())[0].toString();
|
|
|
- UploadLogUtils.sendLogs(LOG_NODE_QR,"",
|
|
|
- logLine,"二维码-" + "USB-初始化成功");
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
public void onInitFail(int code, String errMsg) {
|
|
|
- if(qrInitListener!=null){
|
|
|
- qrInitListener.onInitFail(code, errMsg);
|
|
|
- }
|
|
|
+
|
|
|
//todo "二维码-" + "USB-扫码头初始化失败....\n" + errMsg
|
|
|
if(statusEnum!=InitStatusEnum.FAIL){
|
|
|
statusEnum=InitStatusEnum.FAIL;
|
|
|
- String logLine = (new Throwable().getStackTrace())[0].toString();
|
|
|
- UploadLogUtils.sendLogs(LOG_NODE_QR,"",
|
|
|
- logLine,"二维码-" + "USB-初始化失败" + errMsg);
|
|
|
+ if(qrInitListener!=null){
|
|
|
+ qrInitListener.onInitFail(code, errMsg);
|
|
|
+ }
|
|
|
}
|
|
|
getmHandler().removeMessages(3);
|
|
|
getmHandler().sendEmptyMessageDelayed(3,5000);
|