修复测试反馈问题
This commit is contained in:
parent
5c311b4309
commit
be6cfd4464
@ -20,6 +20,7 @@ import android.webkit.WebViewClient;
|
||||
import com.alibaba.android.arouter.facade.annotation.Route;
|
||||
import com.shayu.onetoone.R;
|
||||
import com.shayu.onetoone.manager.RouteManager;
|
||||
import com.shayu.onetoone.utils.ConversationUtils;
|
||||
import com.shayu.onetoone.utils.UserManager;
|
||||
import com.yunbao.common.Constants;
|
||||
import com.yunbao.common.bean.IMLoginModel;
|
||||
@ -139,6 +140,8 @@ public class WebViewActivity extends AbsOTOActivity {
|
||||
.setTitle("快來認識更多有趣的朋友吧!")
|
||||
.setUrl(event.getData())
|
||||
.showDialog();
|
||||
}else if (event.getMethod().equals("androidCallChat")){
|
||||
ConversationUtils.startConversation(mContext,event.getData());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -612,6 +612,8 @@ public class JavascriptInterfaceUtils {
|
||||
|
||||
@JavascriptInterface
|
||||
public void androidCallChat(String targetId) {
|
||||
ToastUtil.show("网页触发聊一聊:" + targetId);
|
||||
Bus.get().post(new JavascriptInterfaceEvent()
|
||||
.setData(targetId)
|
||||
.setMethod("androidCallChat"));
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user