APP纯签约发起,WXEntryActivity回调参数写死,无法与其他区分
1、发起签约 WXOpenBusinessWebview.Req req = new WXOpenBusinessWebview.Req();
req.businessType = 12;//固定值
HashMapstring, string="" style="color: rgb(77, 77, 76); font-family: monospace; white-space: pre;">queryInfo = new HashMap<>();
queryInfo.put("key1","value1");
queryInfo.put("key2","value2");
queryInfo.put("key3","value3");
req.queryInfo = queryInfo;
api.sendReq(req);/string,> string, string="" style="color: rgb(77, 77, 76); font-family: monospace; white-space: pre;">2、返回/string,> string, string="" style="color: rgb(77, 77, 76); font-family: monospace; white-space: pre;"> /string,> string, string="" style="color: rgb(77, 77, 76); font-family: monospace; white-space: pre;">/string,> class WXEntryActivity { @Override public void onReq(BaseReq req) { super.onReq(req); //问题1,这里返回这个类型,其他小程序调用返回这个类型,那如何区分是签约发起还是小程序调的呢? ConstantsAPI.COMMAND_SHOWMESSAGE_FROM_WX // 问题2, 假如是通过 WXAppExtendObject.extInfo 的值做区分,那签约的时候返回的是wx_papay,怎么 保证其他场景不会返回这个值 } string, string="" style="color: rgb(77, 77, 76); font-family: monospace; white-space: pre;">/string,>