mac
2024-07-03 4f11141da120098afc3d3c4f26e0e0416a01a312
app/src/main/java/com/hdl/photovoltaic/ui/device/ScanActivity.java
@@ -342,6 +342,7 @@
        if (TextUtils.isEmpty(result)) {
            Toast.makeText(this, R.string.capture_no_result, Toast.LENGTH_SHORT).show();
        } else {
            if (result.startsWith("https://") || result.startsWith("http://")) {
            Intent intent = new Intent();
            intent.putExtra("data", result);
            setResult(RESULT_OK, intent);
@@ -351,6 +352,9 @@
                    HDLUniMP.UNI_EVENT_REPLY_HOME_ADD,
                    HDLUniMP.UNI_EVENT_REPLY_HOME_ADD,
                    result);
            } else {
                Toast.makeText(this, R.string.not_delivery_qr_code, Toast.LENGTH_SHORT).show();
            }
        }
    }