/// <summary> /// 根据报文头部,来更新或下载参数 /// </summary> /// <param name="headBytes"></param> protected override void HandleFrontBytes(byte[] headBytes) { byte tmp = headBytes[9]; try { switch (tmp & 0x0F) { case 0x03: { HasSignIn = false; //EnqueueWork(new CSignIn_YAPaymentPay()); } break; case 0x04: //更新公钥 CYADownCA ca = new CYADownCA(); ca.DownPublishCA(); break; case 0x05: //下载IC卡参数 CYADownAID aid = new CYADownAID(); aid.DownAID(); break; } } catch (Exception ex) { Log.Warn("HandleFrontBytesy异常", ex); } }
protected override void HandleFrontBytes(byte[] headBytes) { byte tmp = headBytes[9]; switch (tmp & 0x0F) { case 0x03: EnqueueWork(new CSignIn_YAPaymentPay()); break; case 0x04: //更新公钥 CYADownCA ca = new CYADownCA(); ca.DownPublishCA(); break; case 0x05: //下载IC卡参数 CYADownAID aid = new CYADownAID(); aid.DownAID(); break; } }