1***@qq.com
1***@qq.com
  • 发布:2024-05-28 11:27
  • 更新:2024-05-28 11:27
  • 阅读:80

易盾风控插件无法触发回调

分类:uni-app

const htp = uni.requireNativePlugin("htpplugin");

    wyInit() {  
        console.log(htp);  
        htp.init({  
            productId: 'xxxxxxxx', // 产品id  
        }, e => {  
            // 回调函数  
            uni.showToast({  
                title: '响应数据:' + JSON.stringify(e),  
                icon: 'none'  
            });  
        })  
    },  

无法触发回调,htp 能打印出有这个方法
打印htp如下:
{
"safeCommToServer": "function() { [native code] }",
"init": "function() { [native code] }",
"safeCommFromServer": "function() { [native code] }",
"getToken": "function() { [native code] }",
"removeAllEventListeners": "function() { [native code] }",
"logOut": "function() { [native code] }",
"ioctl": "function() { [native code] }",
"addEventListener": "function() { [native code] }",
"setRoleInfo": "function() { [native code] }"
}

2024-05-28 11:27 负责人:无 分享
已邀请:

要回复问题请先登录注册