mac
2024-07-03 4f11141da120098afc3d3c4f26e0e0416a01a312
app/src/main/java/com/hdl/photovoltaic/ui/device/ScanActivity.java
@@ -342,15 +342,19 @@
        if (TextUtils.isEmpty(result)) {
            Toast.makeText(this, R.string.capture_no_result, Toast.LENGTH_SHORT).show();
        } else {
            Intent intent = new Intent();
            intent.putExtra("data", result);
            setResult(RESULT_OK, intent);
            finish();
            //EventBus事件分发
            HdlCommonLogic.getInstance().postEventBusSticky(
                    HDLUniMP.UNI_EVENT_REPLY_HOME_ADD,
                    HDLUniMP.UNI_EVENT_REPLY_HOME_ADD,
                    result);
            if (result.startsWith("https://") || result.startsWith("http://")) {
                Intent intent = new Intent();
                intent.putExtra("data", result);
                setResult(RESULT_OK, intent);
                finish();
                //EventBus事件分发
                HdlCommonLogic.getInstance().postEventBusSticky(
                        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();
            }
        }
    }