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

WBOY
Libérer: 2023-03-03 08:28:01
original
2398 Les gens l'ont consulté

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

回复内容:

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

Étiquettes associées:
source:php.cn
Déclaration de ce site Web
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
Tutoriels populaires
Plus>
Derniers téléchargements
Plus>
effets Web
Code source du site Web
Matériel du site Web
Modèle frontal
À propos de nous Clause de non-responsabilité Sitemap
Site Web PHP chinois:Formation PHP en ligne sur le bien-être public,Aidez les apprenants PHP à grandir rapidement!