change sth

This commit is contained in:
cebgcontract 2022-09-01 16:59:14 +08:00
parent 8c1cee23dd
commit 8dc13687d7
2 changed files with 11 additions and 3 deletions

View File

@ -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);
// }
}
/**

View File

@ -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}`);
}