- 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,>
2019-07-10 - iOS WXOpenBusinessWebViewReq 为什么没有onResp返回
iOS WXOpenBusinessWebViewReq 想要实现微信免密签约,当停止签约,授权失败时,回来会走 - (BOOL)application:(UIApplication *)application openURL:(NSURL *)url sourceApplication:(NSString*)sourceApplication annotation:(id)annotation 然后进入 - (void)onResp:(BaseResp *)resp 但是一旦授权成功,就会提示,是否离开微信,回到app。并且回来后进入 - (BOOL)application:(UIApplication *)application openURL:(NSURL *)url sourceApplication:(NSString *)sourceApplication annotation:(id)annotation 却不再走onResp方法了。 ps:签约同意后,如果点了左上角的x,也会返回失败
2020-04-26