lib/blsm-mp-wx.rb in blsm-mp-wx-0.1.6 vs lib/blsm-mp-wx.rb in blsm-mp-wx-0.1.7
- old
+ new
@@ -222,10 +222,10 @@
return nil unless content[:touser]==openid
return nil unless %w(new_order balance score_change custom).include?(msg_name)
VdMpMsg.create({
app_id: app_id,
openid: openid,
- content: content,
+ content: content.to_json,
msg_name: msg_name,
template: %w(new_order balance score_change).include?(msg_name),
status: 'none'
})
end