zoukankan      html  css  js  c++  java
  • ”易修车“项目的微信支付问题

    第一步:

    第二步:

    第三步:

    出现过的错误:

    1.微信的redirect_uri参数错误原因分析(以上参数有错)

    2.scope参数错误或没有scope权限

    1. 订阅号没有相关的权限

    2. 账号没有认证,没有相关的权限

    那么这里遇到问题两种都不是。开发账号是 服务号,而且也是认证号。

    解决方法:

    错误配置:

    https://open.weixin.qq.com/connect/oauth2/authorize?appid=wxf0e81c3bee622d60&redirect_uri=http%3A%2F%2Fnba.bluewebgame.com%2Foauth_response.php&scope=snsapi_userinfo&response_type=code&state=STATE#wechat_redirect

    正确的配置:

    https://open.weixin.qq.com/connect/oauth2/authorize?appid=wxf0e81c3bee622d60&redirect_uri=http%3A%2F%2Fnba.bluewebgame.com%2Foauth_response.php&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect

      原因就是scope的位置不一样!!! 

     scope 为 snsapi_base的时候没有影响。但是scope为snsapi_userinfo  就会提示 scope参数错误或没有scope权限 。

  • 相关阅读:
    java--exceptions
    java-interface
    Java笔记
    memcpy
    const 关键字
    LeeCode整数 反转
    函数调用运算符笔记
    cvCreateImage
    c++继承笔记1
    虚拟机下的debian无法登陆
  • 原文地址:https://www.cnblogs.com/lvchenfeng/p/4914146.html
Copyright © 2011-2022 走看看