Git Product home page Git Product logo

Comments (3)

skinnyworm avatar skinnyworm commented on June 14, 2024

ruby是否是2.0以上版本?

发自我的 iPhone

在 2014年6月25日,下午8:04,失控 [email protected] 写道:

SyntaxError (/Users/byte/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/bundler/gems/wechat-rails-b7acbc05aa5c/lib/wechat/message.rb:27: syntax error, unexpected ':', expecting ';' or '\n'
def item title: "title", description: nil, p...
^
/Users/byte/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/bundler/gems/wechat-rails-b7acbc05aa5c/lib/wechat/message.rb:27: syntax error, unexpected ',', expecting keyword_end
def item title: "title", description: nil, pic_url: n...
^
/Users/byte/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/bundler/gems/wechat-rails-b7acbc05aa5c/lib/wechat/message.rb:27: Can't assign to nil
...tle: "title", description: nil, pic_url: nil, url: nil
... ^
/Users/byte/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/bundler/gems/wechat-rails-b7acbc05aa5c/lib/wechat/message.rb:27: Can't assign to nil
...description: nil, pic_url: nil, url: nil
按照README来配置的,服务器配置没有问题,但是不知道为啥微信服务器传数据过来的时候会报错。


Reply to this email directly or view it on GitHub.

from wechat.

ZhaoZijie avatar ZhaoZijie commented on June 14, 2024

解决了。确实是ruby版本的问题。
虽然之前也是2.0.0p0.但是升级到2.0.0-p353解决的。

from wechat.

ZhaoZijie avatar ZhaoZijie commented on June 14, 2024

在DSL做callback做一些功能的认证感觉很麻烦。不支持before_action等。

from wechat.

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.