Comments (9)
无法复现,请尝试在项目内运行rails g wechat:install
,然后比较一下config/wechat.yml文件的内容?
from wechat.
嗯,项目内运行 rails g wechat:install 再执行,wechat就出错了
无论怎么修改 config/wechat.yml 都会直接出错
default: &default
# Or if using public account, only need above two line
appid: 'wxdc7aaa425156987b'
secret: ''
token: "SQBQirYFxoLCUOF8PXUyuVbvPNTLckk"
access_token: "/var/tmp/wechat_access_token"
production:
# Or if using public account, only need above two line
# appid:
# secret:
token: <%= ENV['WECHAT_TOKEN'] %>
access_token: <%= ENV['WECHAT_ACCESS_TOKEN'] %>
encoding_aes_key: <%= ENV['WECHAT_ENCODING_AES_KEY'] %>
development:
<<: *default
test:
<<: *default
from wechat.
不修改wechat.yml也会出错么?
from wechat.
是的 ,不修改wechat.yml 也会出错,看出错的堆栈是调用了 deprecate的方法了么?
from wechat.
升级到rails 4.2.4呢?
from wechat.
4.2.4可以,Thanks @Eric-Guo
from wechat.
在bin/wechat中首先
require 'active_support'
也可以解决这个问题,参考 rails/rails#17936
from wechat.
感谢@jasper-fu ,已修改。
from wechat.
0.6.1已经包括这个修正。
from wechat.
Related Issues (20)
- 配置文件的token指的是什么? HOT 1
- wechat_api 接口对自定义小程序配置无法正确读取 HOT 8
- 微信公众平台问题 HOT 11
- 获取Ticket错误,Wechat::ResponseError - api unauthorized HOT 2
- 没有找到上传视频的api,能否实现呢? HOT 1
- 关于 JS-SDK 的疑问 HOT 1
- add ruby 3 support HOT 2
- 消息发送疑问 HOT 4
- Ruby 3.0 + Rails 6.1 shows DEPRECATION WARNING running rspec HOT 7
- 使用 wechat_responder account 无法正确加载配置 HOT 1
- 小程序MpApi的initialize 错误 HOT 3
- 能否支持响应小程序卡片消息类型miniprogrampage? HOT 1
- 请问支持企业微信的获取【会话内容存档】功能么 HOT 4
- 如何调用mp_api下关于小程序的API? HOT 1
- 微信的草稿箱功能什么时候可以支持,图文素材现在部分公众号已经用不了了 HOT 1
- An error occurred with wechat command-line 1st attempt HOT 5
- Psych::BadAlias (Unknown alias: default) HOT 2
- 请问使用wechat_responder没有响应是怎么回事? HOT 11
- 是不是要向psych (5.0.0)做一些兼容处理了? HOT 2
- Responder#on方法中关于message type的限制似乎是没必要的 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wechat.