lanrion / qy_wechat Goto Github PK
View Code? Open in Web Editor NEW企业微信 Ruby on Rails 版本
License: MIT License
企业微信 Ruby on Rails 版本
License: MIT License
MultiXml::ParseError (Start tag expected, '<' not found):
multi_xml (0.5.5) lib/multi_xml/parsers/nokogiri.rb:15:in parse' multi_xml (0.5.5) lib/multi_xml.rb:138:in
parse'
/home/deploy/xiaoshouke/shared/bundle/ruby/2.1.0/bundler/gems/qy_wechat-31d0c92ad14e/app/controllers/qy_wechat/qy_wechat_controller.rb:32:in setup_wechat_message' activesupport (4.1.8) lib/active_support/callbacks.rb:424:in
block in make_lambda'
activesupport (4.1.8) lib/active_support/callbacks.rb:143:in call' activesupport (4.1.8) lib/active_support/callbacks.rb:143:in
block in halting_and_conditional'
activesupport (4.1.8) lib/active_support/callbacks.rb:149:in call' activesupport (4.1.8) lib/active_support/callbacks.rb:149:in
block in halting_and_conditional'
activesupport (4.1.8) lib/active_support/callbacks.rb:86:in call' activesupport (4.1.8) lib/active_support/callbacks.rb:86:in
run_callbacks'
actionpack (4.1.8) lib/abstract_controller/callbacks.rb:19:in process_action' actionpack (4.1.8) lib/action_controller/metal/rescue.rb:29:in
process_action'
actionpack (4.1.8) lib/action_controller/metal/instrumentation.rb:31:in block in process_action' activesupport (4.1.8) lib/active_support/notifications.rb:159:in
block in instrument'
activesupport (4.1.8) lib/active_support/notifications/instrumenter.rb:20:in instrument' activesupport (4.1.8) lib/active_support/notifications.rb:159:in
instrument'
actionpack (4.1.8) lib/action_controller/metal/instrumentation.rb:30:in process_action' actionpack (4.1.8) lib/action_controller/metal/params_wrapper.rb:250:in
process_action'
activerecord (4.1.8) lib/active_record/railties/controller_runtime.rb:18:in process_action' actionpack (4.1.8) lib/abstract_controller/base.rb:136:in
process'
actionview (4.1.8) lib/action_view/rendering.rb:30:in process' actionpack (4.1.8) lib/action_controller/metal.rb:196:in
dispatch'
actionpack (4.1.8) lib/action_controller/metal/rack_delegation.rb:13:in dispatch' actionpack (4.1.8) lib/action_controller/metal.rb:232:in
block in action'
actionpack (4.1.8) lib/action_dispatch/routing/route_set.rb:82:in call' actionpack (4.1.8) lib/action_dispatch/routing/route_set.rb:82:in
dispatch'
actionpack (4.1.8) lib/action_dispatch/routing/route_set.rb:50:in call' actionpack (4.1.8) lib/action_dispatch/journey/router.rb:73:in
block in call'
actionpack (4.1.8) lib/action_dispatch/journey/router.rb:59:in each' actionpack (4.1.8) lib/action_dispatch/journey/router.rb:59:in
call'
actionpack (4.1.8) lib/action_dispatch/routing/route_set.rb:678:in call' railties (4.1.8) lib/rails/engine.rb:514:in
call'
railties (4.1.8) lib/rails/railtie.rb:194:in public_send' railties (4.1.8) lib/rails/railtie.rb:194:in
method_missing'
actionpack (4.1.8) lib/action_dispatch/journey/router.rb:73:in block in call' actionpack (4.1.8) lib/action_dispatch/journey/router.rb:59:in
each'
actionpack (4.1.8) lib/action_dispatch/journey/router.rb:59:in call' actionpack (4.1.8) lib/action_dispatch/routing/route_set.rb:678:in
call'
simple_captcha2 (0.3.2) lib/simple_captcha/middleware.rb:26:in call' rack (1.5.2) lib/rack/etag.rb:23:in
call'
rack (1.5.2) lib/rack/conditionalget.rb:35:in call' rack (1.5.2) lib/rack/head.rb:11:in
call'
remotipart (1.2.1) lib/remotipart/middleware.rb:27:in call' actionpack (4.1.8) lib/action_dispatch/middleware/params_parser.rb:27:in
call'
actionpack (4.1.8) lib/action_dispatch/middleware/flash.rb:254:in call' rack (1.5.2) lib/rack/session/abstract/id.rb:225:in
context'
rack (1.5.2) lib/rack/session/abstract/id.rb:220:in call' actionpack (4.1.8) lib/action_dispatch/middleware/cookies.rb:560:in
call'
activerecord (4.1.8) lib/active_record/query_cache.rb:36:in call' activerecord (4.1.8) lib/active_record/connection_adapters/abstract/connection_pool.rb:621:in
call'
actionpack (4.1.8) lib/action_dispatch/middleware/callbacks.rb:29:in block in call' activesupport (4.1.8) lib/active_support/callbacks.rb:82:in
run_callbacks'
actionpack (4.1.8) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
qy_token
encoding_aes_key
一直报:Failure because corpid != from_corpid"
UserApp Load (0.6ms) SELECT user_apps
.* FROM user_apps
WHERE qy_secret_key
.qy_secret_key
= '2222' LIMIT 1
Mysql2::Error: Unknown column 'qy_secret_key.qy_secret_key' in 'where clause': SELECT user_apps
.* FROM user_apps
WHERE qy_secret_key
.qy_secret_key
= '2222' LIMIT 1
Completed 500 Internal Server Error in 3ms
ActiveRecord::StatementInvalid (Mysql2::Error: Unknown column 'qy_secret_key.qy_secret_key' in 'where clause': SELECT user_apps
.* FROM user_apps
WHERE qy_secret_key
.qy_secret_key
= '2222' LIMIT 1):
activerecord (4.1.8) lib/active_record/connection_adapters/abstract_mysql_adapter.rb:303:in query' activerecord (4.1.8) lib/active_record/connection_adapters/abstract_mysql_adapter.rb:303:in
block in execute'
activerecord (4.1.8) lib/active_record/connection_adapters/abstract_adapter.rb:373:in block in log' activesupport (4.1.8) lib/active_support/notifications/instrumenter.rb:20:in
instrument'
activerecord (4.1.8) lib/active_record/connection_adapters/abstract_adapter.rb:367:in log' activerecord (4.1.8) lib/active_record/connection_adapters/abstract_mysql_adapter.rb:303:in
execute'
activerecord (4.1.8) lib/active_record/connection_adapters/mysql2_adapter.rb:228:in execute' activerecord (4.1.8) lib/active_record/connection_adapters/mysql2_adapter.rb:232:in
exec_query'
activerecord (4.1.8) lib/active_record/connection_adapters/mysql2_adapter.rb:240:in select' activerecord (4.1.8) lib/active_record/connection_adapters/abstract/database_statements.rb:24:in
select_all'
activerecord (4.1.8) lib/active_record/connection_adapters/abstract/query_cache.rb:68:in block in select_all' activerecord (4.1.8) lib/active_record/connection_adapters/abstract/query_cache.rb:83:in
cache_sql'
activerecord (4.1.8) lib/active_record/connection_adapters/abstract/query_cache.rb:68:in select_all' activerecord (4.1.8) lib/active_record/querying.rb:39:in
find_by_sql'
activerecord (4.1.8) lib/active_record/relation.rb:611:in exec_queries' activerecord (4.1.8) lib/active_record/relation.rb:493:in
load'
activerecord (4.1.8) lib/active_record/relation.rb:238:in to_a' activerecord (4.1.8) lib/active_record/relation/finder_methods.rb:460:in
find_take'
activerecord (4.1.8) lib/active_record/relation/finder_methods.rb:98:in take' activerecord (4.1.8) lib/active_record/relation/finder_methods.rb:104:in
take!'
activerecord (4.1.8) lib/active_record/relation/finder_methods.rb:87:in find_by!' activerecord (4.1.8) lib/active_record/querying.rb:7:in
find_by!'
activerecord (4.1.8) lib/active_record/dynamic_matchers.rb:70:in find_by_qy_secret_key!' activerecord (4.1.8) lib/active_record/dynamic_matchers.rb:24:in
method_missing'
/Users/zhangqinjian/.rvm/gems/ruby-2.1.4@rails418/bundler/gems/qy_wechat-a019c223bc3c/app/controllers/qy_wechat/qy_wechat_controller.rb:68:in `setup_qy_app'
find_by_qy_secret_key!(qy_secret_key: qy_secret_key)
gems/qy_wechat-7f84bc2ba134/app/controllers/qy_wechat/qy_wechat_controller.rb:8:in <class:QyWechatController>': undefined method
before_action' for QyWechat::QyWechatController:Class (NoMethodError)
rails g qy_wechat:migration QyAccount
/Users/zhangqinjian/.rvm/gems/ruby-1.9.3-p429@demo_weixin/bundler/gems/qy_wechat-36ce6a78ce4d/app/controllers/qy_wechat/qy_wechat_controller.rb:8:in class:QyWechatController': undefined methodbefore_action' for QyWechat::QyWechatController:Class (NoMethodError)
rails版本是 gem 'rails', '3.2.12'
当我使用了这个插件后,我添加了一个menu菜单,然后调试出现了undefined method `response_event_message‘
qy_account建议改称qy_account_app 或者 qy_app
activerecord (3.2.13) lib/active_record/dynamic_matchers.rb:55:in method_missing' /Users/zhangqinjian/.rvm/gems/[email protected]/bundler/gems/qy_wechat-bdd4f6bfb87c/app/controllers/qy_wechat/qy_wechat_controller.rb:68:in
setup_qy_app'
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.