change sth
This commit is contained in:
parent
8c1cee23dd
commit
8dc13687d7
@ -34,9 +34,13 @@ public class JcSDK {
|
||||
* @param msg
|
||||
*/
|
||||
public static void csCallback(String funId, String msg) {
|
||||
if (!funId.equals("jscall")) {
|
||||
commonCB.stringCallback(funId, msg);
|
||||
}
|
||||
commonCB.stringCallback(funId, msg);
|
||||
// if (funId.indexOf("jscall-") == 0) {
|
||||
// funId = funId.replace("jscall-", "");
|
||||
// CocosJSHelper.jniCallback(funId, msg);
|
||||
// } else {
|
||||
// commonCB.stringCallback(funId, msg);
|
||||
// }
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -15,4 +15,8 @@ window.jumpToWallet = function(url) {
|
||||
// '(Ljava/lang/String;)V',
|
||||
// url || 'wc://'
|
||||
// )
|
||||
}
|
||||
|
||||
window.nativeCallback = function(funId, msg) {
|
||||
console.log(`receive msg from native:: funId: ${funId}, msg: ${msg}`);
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user