Code Monkey home page Code Monkey logo

Comments (2)

lanrion avatar lanrion commented on June 5, 2024

Q1的问题:当你执行完Q3的命令后,便会产生这个KEY。
Q2的问题:如果你只是一个公众号,我的建议是全局变量放在项目的config/initializers目录下,如果是多个公众号的情况,则直接在你需要的调用微信接口的时候重新new一个。
Q3的问题:调用is_valid当时的想法是为了确保你的配置是对的,但后来发现这种设计并不可取,2.0后的版本会变成自动重试刷新(见 #38 )。

from weixin_authorize.

u0x01 avatar u0x01 commented on June 5, 2024

$client 初始化操作请放到 config/application.rb 中

另外,你的代码拓扑是有错误的。既然是用了多公众号方案,就不应该使用全局$client

而是在调用高级参数前实例化 对象

@client = new....

from weixin_authorize.

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.