Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion dsbridge/src/main/java/wendu/dsbridge/DWebView.java
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ public String call(String methodName, String argStr) {
try {
if (asyn) {
final String cb = callback;
method.invoke(jsb, arg, new CompletionHandler() {
retData = method.invoke(jsb, arg, new CompletionHandler() {

@Override
public void complete(Object retValue) {
Expand Down Expand Up @@ -186,6 +186,8 @@ private void complete(Object retValue, boolean complete) {
}
}
});
ret.put("code", 0);
ret.put("data", retData);
} else {
retData = method.invoke(jsb, arg);
ret.put("code", 0);
Expand Down