// 微信发送请求到第三方应用时,会回调到该方法 @Override public void onReq(BaseReq req) { switch (req.getType()) { case ConstantsAPI.COMMAND_GETMESSAGE_FROM_WX: break; case ConstantsAPI.COMMAND_SHOWMESSAGE_FROM_WX: goToShowMsg((ShowMessageFromWX.Req) req); break; default: break; } finish(); }
@Override public void onReq(BaseReq req) { switch (req.getType()) { case ConstantsAPI.COMMAND_GETMESSAGE_FROM_WX: goToSplash(); // 在微信中点击豆丁书房 break; case ConstantsAPI.COMMAND_SHOWMESSAGE_FROM_WX: goToBookReader((ShowMessageFromWX.Req) req); // 发送方,接收方点击 break; default: break; } }