新增JS零卡分期

This commit is contained in:
guozhen
2024-10-22 09:49:52 +08:00
committed by xuhuixiang
parent c5def56607
commit f7fd7e6cb8

View File

@@ -336,7 +336,7 @@ public class JsBridgeActivity extends BaseActivity {
isText = getIntent().getBooleanExtra("isText", false);
isV = getIntent().getBooleanExtra("isV", true);
if (!isText) {
url = getIntent().getStringExtra("url") + (isV?"?v=" + System.currentTimeMillis() : "");
url = getIntent().getStringExtra("url") + (isV ? "?v=" + System.currentTimeMillis() : "");
} else {
newsBean = (NewsBean) getIntent().getSerializableExtra("url");
}
@@ -422,7 +422,19 @@ public class JsBridgeActivity extends BaseActivity {
// downZip(gameDownBean);
// }
viewBinding.jsbridgeBridgewebview.addHandlerLocal("ZeroCard", new BridgeHandler() {
@Override
public void handler(Context context, String s, CallBackFunction callBackFunction) {
try {
Intent intent = new Intent(Intent.ACTION_VIEW);
intent.setData(Uri.parse(s));
startActivity(intent);
}catch (Exception e){
}
}
});
viewBinding.jsbridgeBridgewebview.addHandlerLocal("getAuthorizeCode", new BridgeHandler() {
@Override
public void handler(Context context, String data, CallBackFunction callBackFunction) {