blsm-mp-wx 0.2.5 → 0.2.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/blsm-mp-wx/version.rb +1 -1
- data/lib/blsm-mp-wx.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4e77b2dffef393a886b3c0a32dd5155eb4420836
|
4
|
+
data.tar.gz: 625ed970fa8a13943b4bb496a226ba516388d984
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bfe980a650d0b5904453cd74e430fd19bb2ededecf9bb5d8eefbfd065a70516a7d48ff6cbf0096364a90d89de14e18b39d4721b0da81d80364f0a86718c3d8a0
|
7
|
+
data.tar.gz: 57e06e82f948f026bc703fb80722d5fc8a8ca6f355eac3c89763a225d39323e4c9f4b895bf1f84f3fd288eba19f3e920e8e16c6c496a63dc000d994162d85054
|
data/lib/blsm-mp-wx/version.rb
CHANGED
data/lib/blsm-mp-wx.rb
CHANGED
@@ -218,7 +218,7 @@ module BlsmMpWx
|
|
218
218
|
# new_order => content: {touser:'openid',order_id:''} 系统自动优先使用模板消息发送通知
|
219
219
|
# balance => content: {touser:'openid',clearing_id} 系统自动优先使用模板消息发送通知
|
220
220
|
# score_change => content: {touser:'',change:5,total:25,content:'邀请他人。。。。'}
|
221
|
-
def create_msg(app_id
|
221
|
+
def create_msg(app_id, openid, content, msg_name, template_msg=false)
|
222
222
|
app_id ||= self.APP_ID
|
223
223
|
return nil unless openid
|
224
224
|
return nil unless content[:touser]==openid
|
@@ -234,7 +234,7 @@ module BlsmMpWx
|
|
234
234
|
end
|
235
235
|
|
236
236
|
|
237
|
-
def create_msg!(app_id
|
237
|
+
def create_msg!(app_id, openid, content, msg_name, template_msg=false)
|
238
238
|
app_id ||= self.APP_ID
|
239
239
|
VdMpMsg.create!({
|
240
240
|
app_id: app_id,
|