Skip to content

Commit 695538c

Browse files
committed
fix openUrl无app的情况
1 parent 01276c6 commit 695538c

File tree

1 file changed

+2
-2
lines changed
  • VideoOS/VenvyLibrary/src/main/java/cn/com/venvy/common/webview

1 file changed

+2
-2
lines changed

VideoOS/VenvyLibrary/src/main/java/cn/com/venvy/common/webview/JsBridge.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,14 +137,14 @@ public void openUrl(String jsParams) {
137137
.setLinkUrl(linkUrl)
138138
.setSelfLink(selfLink)
139139
.build();
140-
if (mPlatform.getWidgetClickListener() != null && adID != null) {
140+
if (mPlatform.getWidgetClickListener() != null) {
141141
mPlatform.getWidgetClickListener().onClick(widgetInfo);
142142
}
143-
boolean canOpen = isPayInstall(Uri.parse(deepLink));
144143
JSONObject jsonObject = new JSONObject();
145144
if (TextUtils.isEmpty(deepLink)) {
146145
jsonObject.put("canOpen", 0);
147146
} else {
147+
boolean canOpen = isPayInstall(Uri.parse(deepLink));
148148
if (canOpen) {
149149
jsonObject.put("canOpen", 1);
150150
} else {

0 commit comments

Comments
 (0)