Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

卡券接口 #73

Closed
wants to merge 27 commits into from
Closed
Show file tree
Hide file tree
Changes from 17 commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
dbc8f5e
新增微信卡券接口
u0x01 Aug 18, 2015
93d20b2
引入微信卡券功能
u0x01 Aug 18, 2015
9024384
Merge remote-tracking branch 'lanrion/master'
u0x01 Aug 18, 2015
73ff372
Merge remote-tracking branch 'lanrion/master' into add-weixin-card
u0x01 Aug 18, 2015
26c4cf0
添加 API Ticket
u0x01 Aug 18, 2015
2ff3c01
修正微信卡券 card_ext 错误
u0x01 Aug 18, 2015
7ee7d07
添加通过客服消息发送卡券接口
u0x01 Aug 18, 2015
78c3ec2
修正 card_ext 签名错误
u0x01 Aug 18, 2015
eb26e4a
修正 发送微信卡券客服消息 参数错误
u0x01 Aug 18, 2015
830ee10
添加参数检测机制
u0x01 Aug 20, 2015
c698ee2
修正数项错误
u0x01 Aug 20, 2015
50cc9e7
统一卡券方法名
u0x01 Aug 20, 2015
d0776cc
Merge branch 'add-weixin-card'
u0x01 Aug 20, 2015
0912eb5
新增微信门店接口
u0x01 Aug 20, 2015
0e48f94
新增获取自动回复规则接口
u0x01 Aug 20, 2015
1ee723c
卡券接口微调
u0x01 Aug 20, 2015
c7e72e2
Merge branch 'add-weixin-card'
u0x01 Aug 20, 2015
6e0e66c
修正错误
u0x01 Aug 22, 2015
7a1eb26
修改函数缺少代码参数为运行时错误,方便新手调试。
u0x01 Aug 22, 2015
82d521c
Merge branch 'add-weixin-poi'
u0x01 Aug 22, 2015
9b00f9f
调整错误文案
u0x01 Aug 23, 2015
537ab1a
修正错误
u0x01 Aug 23, 2015
5a4050d
完善会员卡接口
u0x01 Aug 24, 2015
c490107
Merge remote-tracking branch 'lanrion/master' into weixin-card-dev
u0x01 Sep 7, 2015
c422557
Merge remote-tracking branch 'lanrion/master'
u0x01 Dec 10, 2015
370827e
Merge branch 'weixin-card-dev'
u0x01 Dec 14, 2015
c32ed76
Merge remote-tracking branch 'lanrion/master'
u0x01 Dec 26, 2015
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion lib/weixin_authorize.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,12 @@ module JsTicket
autoload(:RedisStore, "weixin_authorize/js_ticket/redis_store")
end

module ApiTicket
autoload(:Store, "weixin_authorize/api_ticket/store")
autoload(:ObjectStore, "weixin_authorize/api_ticket/object_store")
autoload(:RedisStore, "weixin_authorize/api_ticket/redis_store")
end

OK_MSG = "ok".freeze
OK_CODE = 0.freeze
GRANT_TYPE = "client_credential".freeze
Expand All @@ -43,7 +49,7 @@ def http_get_without_token(url, url_params={}, endpoint="plain")
def http_post_without_token(url, post_body={}, url_params={}, endpoint="plain")
post_api_url = endpoint_url(endpoint, url)
# to json if invoke "plain"
if endpoint == "plain" || endpoint == CUSTOM_ENDPOINT
if endpoint == "plain" || endpoint == "api" || endpoint == CUSTOM_ENDPOINT
post_body = JSON.dump(post_body)
end
load_json(resource(post_api_url).post(post_body, params: url_params))
Expand Down
Loading