Maison  >  Article  >  développement back-end  >  "sub_appid and sub_openid not match"问题,但是能获取到openid?

"sub_appid and sub_openid not match"问题,但是能获取到openid?

WBOY
WBOYoriginal
2016-12-05 13:44:092392parcourir

使用通联支付中微信支付接口,发送参数之后返回“sub_appid and sub_openid not match”,按照说明文档中,原因是获取openid的方式不正确,可是查看了源代码,发现openid也是通过授权的方式获得的,而且确实能打印出来,在后台配置中我亦修改了公众号appId以及appSecret的值,并且在公众号中添加了自己的微信为测试号(备注:里面的公众号也是测试号,正式号还未下来),请问还可能是什么原因呢?

回复内容:

使用通联支付中微信支付接口,发送参数之后返回“sub_appid and sub_openid not match”,按照说明文档中,原因是获取openid的方式不正确,可是查看了源代码,发现openid也是通过授权的方式获得的,而且确实能打印出来,在后台配置中我亦修改了公众号appId以及appSecret的值,并且在公众号中添加了自己的微信为测试号(备注:里面的公众号也是测试号,正式号还未下来),请问还可能是什么原因呢?

Déclaration:
Le contenu de cet article est volontairement contribué par les internautes et les droits d'auteur appartiennent à l'auteur original. Ce site n'assume aucune responsabilité légale correspondante. Si vous trouvez un contenu suspecté de plagiat ou de contrefaçon, veuillez contacter admin@php.cn