wxr
2021-12-15 e1a8f2f7e4d850beedeb1469610b878c1427e976
HDL-ON_iOS/Scan.cs
@@ -35,7 +35,6 @@
                var bOn = false;
                mZXingOverlayView.OnCancel += () =>
                {
                    scanner?.Cancel();
                };
@@ -50,9 +49,14 @@
            var result = await scanner.Scan();
            if (result != null)
            {
                action?.Invoke(result.Text);
            }
            else
            {
                action?.Invoke(null);
                Console.WriteLine("二维码返回值为null");
            }
        }
        public static byte[] BytesFromText(string text, int width = 300, int height = 300)