我用的 ConstantsAPI.COMMAND_SHOWMESSAGE_FROM_WX 和 smReq.message.messageExt WeChatContractPay 时 smReq.message.messageExt = "from=weixin_papay" 我现在只有签约的情况哈
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,>
2020-02-27拉起微信时,只传pre_entrustweb_id就可以 用这个官方给的代码: WXOpenBusinessWebview.Req req = new WXOpenBusinessWebview.Req(); req.businessType = 12;//固定值 HashMap queryInfo = new HashMap<>(); queryInfo.put("pre_entrustweb_id","5778aad8fbd11b3846978993fedf2cb8d6c8f86ea809389b2bc30c4867d563db1566876267UpxT91EYRKY9nltAsZzXixCkFIGYnV2V"; req.queryInfo = queryInfo; api.sendReq(req);
APP纯签约不需要appid吗在Android端加入APP纯签约,如果服务器只给一个pre_entrustweb_id,就可以吗
2020-02-27