安卓中module类中的写法

Map<String,Object> params = new HashMap<>();
        params.put("code",2000);
        params.put("senderId",userid);
        params.put("msg",dataContent);
        mWXSDKInstance.fireGlobalEventCallback("onReceiveMsg", params);

uniapp中监听的写法

// 先获得安卓监听事件方法的原生插件的module
this.uniTest = uni.requireNativePlugin('test-module');
// 监听收到的消息
plus.globalEvent.addEventListener('onReceiveMsg', function(e) {
  console.log('========onReceiveMsg========'+ JSON.stringify(e));
});