Git Product home page Git Product logo

Comments (5)

ixqbar avatar ixqbar commented on July 17, 2024

获取你自己的网址,拼接code,state,最终 location.href = "http://你自己的/ ?code=xxx&state=xxxx"

from getweixincode.

zhaoyou avatar zhaoyou commented on July 17, 2024

获取你自己的网址,拼接code,state,最终 location.href = "http://你自己的/ ?code=xxx&state=xxxx"

@Jonnywang 应该是你这个意思, 最终的回调地址应该是自己拼接返回去,由于有多个地方调用,所以返回的地址应该不能固定,应该根据state去判断或者其他方式,我只是好奇为什么 GWC.urlParams['redirect_uri'] 代码这样可以?

from getweixincode.

ixqbar avatar ixqbar commented on July 17, 2024

了解下公众号的跳转流程就明白这个意思了

from getweixincode.

randleea avatar randleea commented on July 17, 2024

GWC.urlParams['redirect_uri'] 为什么拿到的都是undefined

from getweixincode.

qaqRose avatar qaqRose commented on July 17, 2024

@zhaoyou 第一次进入get-weixin-code.html页面的时候, 带的redirect_uri参数 被包含在 location.href中发送给微信了,所以在微信回调地址中,依然保留者redirect_uri参数

from getweixincode.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.