- New convert_to_userid API
- Support Ruby 3.0.
- Qcloud_token support.
- CRUD of tencent cloud DB for miniapp
- TCB storage API support.
- Set default branch to main.
- FIX: fix_load_controller_wechat not support MP type, by @Msms-NJ #281
- ADD: Wechat::MpApi.wxa_msg_sec_check.
- CHG: upgrade ssl_version to 1.2 by @paicha #276
- ADD: Wechat::CorpApi.news_message_send
- FIX: Wechat API Change material/get_material. reported by @0000sir #275
- ADD: Wechat::MpApi.subscribe_message_send. by @paicha #271
- FIX: FrozenError: can't modify frozen String. by @paicha #272
- New translatecontent support.
- Fix private method
next_migration_number
introduced at #267, by @zpdsky #270 - Give more clear warning about missing Rails in console. by @emtfe #268
- Add rubocop check in CI by @hophacker #267
- Support Rails 6 and Windows at #266
- rails 6 redirect_to use allow_other_host: true by @Chen-George-Zhen #263
- New addvoicetorecofortext and queryrecoresultfortext support.
- improve existing class detect by @3014zhangshuo #261
- new wxa_get_wxacode_unlimit API for miniapp by @paicha #260
- bugfix short_url to shorturl in wechat console tool by @yuanxinyu #259
- allow a message to be sent to a party (department) by @hophacker #256
- Let Message support markdown, text included; allow textcard btntxt to be omitted by @hophacker #251
- Enterprise account add checkin api by @hophacker #254
- Suggest use secret to differentiate different acces_tokens and tickets in Enterprise account by @hophacker #255
- Support Ruby 2.6.0 official
- Bump http gem to 4.0
- New clear quota API by @3014zhangshuo #244
- Wechat::Message support textcard by @hophacker #249
- New getusersummary and getusercumulate API #247
- Fix new share problem in iOS by @killernova #242
- Fix incompatible with Rails 5.2.1 by @chloerei #239
- Allow custom_message_send using Hash as message, previous only allow Wechat::Message. by @zuoliang0 and @fogisland #234
- Support multi wechat account at wechat_responder. by @tuliren #223
- Support wechat mini program apis & signature check. by @oiahoon #225
- Support sent template message with miniprogram. by @falm #228
- Fix request_content could be nil. by @paicha #229
- Support multi wechat account dynamically loading from DB. by @tuliren #222
- user_create API for enterprise account. #206
- Will ignore template_message_send error 43004 by @insub #214
- using template with version if the migration version available by @killernova #220
- Remove Deprecation oauth2_url
- Remove Ruby 2.2 support, add Rails 5.2 and http v3 support
- Read oauth2_state from ticket store every time to avoid invalid oauth2_state by @xiewenwei #196
- oauth2 state code not refresh at the same time of jsapi tickets refresh bug, many thanks @xiewenwei #192
- Add string type scene support for qrcode_create_scene. by @libuchao #191
- fix material_delete correctly.
- wechat material_delete failed to work, thanks @Victorialice report #78
- Better support multiple account. by @xiewenwei #187
- Allow load figaro via RAILS_ENV. by @goofansu #186
- Support new wxa_get_wxacode API for miniapp.
- Add InvalidCredentialError, support audio/amr, voice/speex as file and text/plain as json. by @acenqiu #184
- Support Rails 5.1 officially.
- make sure the formfile can be created outside. by @mechiland #181
- Support mass send API #176
- Support new media_hq API
- Support new createwxaqrcode API for miniapp
- Fix wechat_responder not proper injected in rails 5 API #165
- parse response support XML return, by @zhangbin #167
- WeChat only allow 8 article per one news, by @kikyous #175
- Store token at cookies, by @jstdoit #174
- Support Ruby 2.4.0
- Add support of Enterprise RedPacket API, by @zhangbin #169
- Fix wechat template key has camelCase problem, by @RyanChenDji #159
- Fix long time of oauth2_state bug for wechat_oauth2 methods, by @IvanChou #162
- Bug which if not using multi-account but using web login.
- After allow sub controller using wechat_api, it's possible not initialise at first time. by @IvanChou #155
- Support web application login scope snsapi_login.
- Add unionid support for public account.
- Remove OpenId in Enterprise OAuth2 as it's not supported by Tecent.
- Complete support multi-wechat public account. by @xiewenwei #150
- Support loading configure value from Figaro if application.yml exist.
- Apply opt and config together when loading controller_wechat, to simplify wechat_responder params. by @bzhang443 #147
- Enterprise account now custom_image/voice/file works now. by @zymiboxpay #145
- Fix timeout setting no effective since introduct HTTP. found by @hsluo #74
- Support label_location message, similar to location event, but sent by user with Label. #144
- Add gem signature as additional security methods.
- Allow declare wechat_api at ApplicationController, but using wechat at sub controller. #104
- FIX: consider '' in params as equal with nil, in ControllerApi#wechat_public_oauth2, by @snow #135
- New tag API for public account, by @pynixwang #127
- fix SSLv3 error by use TLSv1_client, by @IvanChou #133
- RSpec testing case on Rails 5 now.
- Resolve Rails 5 ActionController::Parameters issue.
- Fix when access_token failed lead ticket can not refresh problem.
- Default duration should be 1 hours instead of 0 seconds for wechat_oauth2.
- New shorturl allowing convert from long URL to short.
- Wechat.config.oauth2_cookie_duration need convert to secondes, found by @gabrieltong #111
- Fix web_userinfo wrong URL, found by @gabrieltong #110
- To cover wrong release 0.7.10, nothing change
- wechat_oauth2 support public account now.
- Refresh and store state on jsapi ticket, using it on oauth2_url to more secure.
- Remove extra sending payload in message template send json
- Allow setting oauth2_cookie_duration in config
- New wechat_api, similar to wechat_responder, but without messange handle DSL, support web page only wechat application
- New media_uploadimg API.
- New file type of Message.
- Improved multi account support per different controller.
- New wechat_oauth2, only support enterprise account still.
- fix 'skip_before_action :verify_authenticity_token' bug for v5.0.0.beta3 by @vkill #97
- Support Rails 3.2 again after support Rails 5.0, by @guange2015 #96
- Support wechat public account conditional menu. #95
- New wechat_config_js to simplify the Wechat jsapi config.
- Support sent shortvideo.
- Add Redis store token/ticket support, close #76, #60
- Rails 5 support without deprecate warning or other not necessory call. #82
- Allow transfer_customer_service to specific account.
- New customservice_getonlinekflist API.
- session support class WechatSession no need table_exists? methods exist.
- Optional session support by @zfben #81, #88, #91
- Replace after_wechat_response with Rails Nofications facility, by @zfben, original issue is #79
- New user_batchget API. #89
- Support Rails 3.2 again after support Rails 5.0. by @guange2015 #87
- Fetch setting from RAILS_ENV first, then fetch default. by @kikyous #85
- Warning not support on :scan with regular expression, reason see #84
- Fix after using http, upload file function break. #78
- Add callback function after_wechat_response support. by @zfben #79
- Should using department_id instead of departmentid at enterprise api: user_simplelist/user_list.
- Using http instead of rest-client for performance reason. (not support upload file yet)
- Support Rails 3.2 again after support Rails 5.0. by @guange2015 #87
- Fetch setting from RAILS_ENV first, then fetch default. by @kikyous #85
- Warning not support on :scan with regular expression. by @kikyous #84
- Fix token refresh bug on multi worker. #76
- Rewrite the token relative code to add more storage support in future.
- Support Rails 5.0.0.beta1.
- English README available
- Fix oauth2_url calling error, fix #75
- Add timeout configuration option, close #74
- New getuserinfo and oauth2_url to support getting FromUserName from web page.
- Add jsapi_ticket support for Enterprise Account
- Default generated WechatsController < ActionController::Base, as many Rails application may having #authenticate_user or #set_current_user in ApplicationController, so easily affect the first time using experience.
- New syntax
on :view, with: 'VIEW_URL'
support. - New command
upload_replaceparty
which combine three sub command to make uploading department easier. - New command
upload_replaceuser
which combine three sub command to make uploading user easier.
- Handle 48001 error if token is expire/not valid, close #71
- ApiLoader will do config reading and initialize the api instead of spreading the logic.
- Command mode now display different command set based on enterprise/public account setting
- Move config logic in command/wechat to ApiLoader class
- Unsubscribe can only reply plain text 'success' #68
- Fix 404 qrcode download problem, by @huangxiangdan #69
- Official testing and support public encrypt mode, also fix one cipher bug, many thanks to @hlltc #67
- hlltc report public account FILE_BASE no longer needs, clean code #67
- Media command line reflect recent Tecent json schema change. #67
- Tecent report location API changed, so change wechat gems also. #64
- Handle 40001, invalid credential, access_token is invalid or not latest hint # 57
- Support at Rails 4.2.1 wechat can not run #58
- Scan 2D barcode using new syntax
on :scan, with: 'BINDING_QR_CODE'
instead ofon :event, with: 'BINDING_QR_CODE'
in previous version #55 Which will fix can not usingon :event, with: "scan"
problem - Batch job using new syntax
on :batch_job, with: 'replace_user'
instead of previouson :event, with: 'replace_user'
. - Click menu support new syntax
on :click, with: 'BOOK_LUNCH'
, buton :event, with: 'BOOK_LUNCH'
still supported. perferon :click
because it running faster and more nature expression. - Wechat::Responder using Hash for new :client and :batch_job event, avoid time consuming Array match responder
- Fix refresh token not working problem under ruby 2.0.0 #54
- New department_update, user_batchdelete, convert_to_openid API
- Only relay on activesupport on run time, so will greatly improve wechat cli startup time
- Add rails generator support
rails g wechat:install
- Add batch job support for enterprise account like batch create user/department, both API, callback responder and CLI
- Add material management API and CLI
- Add tag API and CLI for enterprise account
- Add QR code scene function for public account
- Fix wrong number of arguments at Wechat::Responder.on by using arity #47
- Fix can not access wechat method after using instance level context.
- Fix skip_verify_ssl parameter error.
- Limit news articles collection to 10, close #5
- Resolve the conflict with gem "responders" by @seamon #45
- Enable the verify SSL for enterprise mode by default, as security is more importent than speed, but still can switch off by configure
- Support scancode_push/scancode_waitmsg event.
- New API method can get wechat server IP list
- New API to query/create department/media/material
- Fix can not read token_file in mingw bug, which introduce at #43
- New user group management API
- Allow transfer to customer service on fallback. #42
- Read and write access_token properly using file locking, #43
- Add wechat enterprise account support
- Make responder execute in action context, by @lazing #15
- jsapi_ticket support, by @feitian124 #27
- Rename gems to wechat and ambitious to being #1 gems about development wechat. thanks Xiaoning transfer this gem name.
- Original gem
wechat-rails
author skinnyworm trasfer to Eric-Guo as maintainer
- Initial release from wechat-rails.