blsm-mp-wx 0.2.2 → 0.2.3
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 +3 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3c76ba513d31eca7548aef7ca0ca085bc0a9b854
|
4
|
+
data.tar.gz: 3f2ada9a37ec301fee39917490df1b20e8ee2602
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a5578473e6ce2823edb4e209671341a1086a59c49ee7518d19f30aa64bba09c3095cf660f897380caaac395644d0f8ebddd1732db2adc9b7f0378c14940aefe7
|
7
|
+
data.tar.gz: 23815a6e481bd88b7d322517edcf1857d59dc30b76ddcc057f11ad4dd225277c5a42067885fa862b897c5f9bf8875678b04d2185cc408b355de8e0f4af4768c9
|
data/lib/blsm-mp-wx/version.rb
CHANGED
data/lib/blsm-mp-wx.rb
CHANGED
@@ -211,7 +211,7 @@ module BlsmMpWx
|
|
211
211
|
# * +app_id+ - 公众号的唯一标识
|
212
212
|
# * +openid+ - 发送给用户的openid
|
213
213
|
# * +content+ - 消息内容
|
214
|
-
# * +msg_name+ - 消息种类:new_order(新订单通知)、balance(结算通知)、score_change(积分变动通知)、custom(普通消息)
|
214
|
+
# * +msg_name+ - 消息种类:new_order(新订单通知)、balance(结算通知)、score_change(积分变动通知)、order(订单通知)、todo(待处理)、split_order(分单)、custom(普通消息)
|
215
215
|
# new_order => content: {touser:'openid',order_id:''} 系统自动优先使用模板消息发送通知
|
216
216
|
# balance => content: {touser:'openid',clearing_id} 系统自动优先使用模板消息发送通知
|
217
217
|
# score_change => content: {touser:'',change:5,total:25,content:'邀请他人。。。。'}
|
@@ -219,13 +219,13 @@ module BlsmMpWx
|
|
219
219
|
app_id ||= self.APP_ID
|
220
220
|
return nil unless openid
|
221
221
|
return nil unless content[:touser]==openid
|
222
|
-
return nil unless %w(new_order balance score_change distribute custom split_order).include?(msg_name)
|
222
|
+
return nil unless %w(new_order balance score_change distribute custom split_order order todo).include?(msg_name)
|
223
223
|
VdMpMsg.create({
|
224
224
|
app_id: app_id,
|
225
225
|
openid: openid,
|
226
226
|
content: content.to_json,
|
227
227
|
msg_name: msg_name,
|
228
|
-
template_msg: %w(new_order balance score_change distribute split_order).include?(msg_name),
|
228
|
+
template_msg: %w(new_order balance score_change distribute split_order order todo).include?(msg_name),
|
229
229
|
status: 'none'
|
230
230
|
})
|
231
231
|
end
|
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.
|
4
|
+
version: 0.2.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- saxer
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-09-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|