blsm-mp-wx 0.2.7 → 0.2.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7485f83a5b5038818e2ab3845c6ec95db95c7140
4
- data.tar.gz: 150942cc1c2b3dc0f94153641dd95c272326e1fc
3
+ metadata.gz: d17128ebc3673cf4292fcc693d6b8b364f55261c
4
+ data.tar.gz: 4e09e565cf2a3c2f24e4f0a689af552a9877c4b6
5
5
  SHA512:
6
- metadata.gz: 3745c7abee89ff7ec202bc9f9c0c5150eefb93c130b89656421dd74f6946fd3ddff54299652caf9cef0dd9e98867a6bc83216eb3931490081941a4bf9d7edb0d
7
- data.tar.gz: 9dc5bd93b24c812f5eb8ea9d86d75e811f3527e0482f165721ebbd9f790a99e698e6f44caa8806096aa623a2c58ba2d2ff164b1643627de63948e99aea60ea4c
6
+ metadata.gz: 6d88c3961fd1acbcaa0c51ceff3a1bb2bff490c51290dd3f349c97ecfe5d6950394692f2102fb1a671a35907b670a51ac7949576a53cf8277da96c246fe9f7cb
7
+ data.tar.gz: 8de960c7c7c16a6cd65e1c4b88ccec9058115ae257cfc1520c2b57c9a1cca2f71050d4ddf54738e8673b9f02d5c378b2aa7a9d7cb2859fefaca74b38d3f68710
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- blsm-mp-wx (0.2.6)
4
+ blsm-mp-wx (0.2.7)
5
5
 
6
6
  GEM
7
7
  remote: https://ruby.taobao.org/
@@ -1,3 +1,3 @@
1
1
  module BlsmMpWx
2
- VERSION = "0.2.7"
2
+ VERSION = "0.2.8"
3
3
  end
data/lib/blsm-mp-wx.rb CHANGED
@@ -221,7 +221,7 @@ module BlsmMpWx
221
221
  # new_order => content: {touser:'openid',order_id:''} 系统自动优先使用模板消息发送通知
222
222
  # balance => content: {touser:'openid',clearing_id} 系统自动优先使用模板消息发送通知
223
223
  # score_change => content: {touser:'',change:5,total:25,content:'邀请他人。。。。'}
224
- def create_msg(app_id, openid, content, msg_name, template_msg=false)
224
+ def create_msg(app_id, openid, content, msg_name, template_msg=true)
225
225
  app_id ||= self.APP_ID
226
226
  return nil unless openid
227
227
  return nil unless content[:touser]==openid
@@ -237,7 +237,7 @@ module BlsmMpWx
237
237
  end
238
238
 
239
239
 
240
- def create_msg!(app_id, openid, content, msg_name, template_msg=false)
240
+ def create_msg!(app_id, openid, content, msg_name, template_msg=true)
241
241
  app_id ||= self.APP_ID
242
242
  VdMpMsg.create!({
243
243
  app_id: app_id,
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: blsm-mp-wx
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.7
4
+ version: 0.2.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - saxer
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-04-08 00:00:00.000000000 Z
11
+ date: 2016-04-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec