lib/blsm-mp-wx.rb in blsm-mp-wx-0.1.8 vs lib/blsm-mp-wx.rb in blsm-mp-wx-0.1.9

- old
+ new

@@ -218,16 +218,16 @@ # score_change => content: {touser:'',change:5,total:25,content:'邀请他人。。。。'} def create_msg(app_id=nil, openid, content, msg_name) app_id ||= self.APP_ID return nil unless openid return nil unless content[:touser]==openid - return nil unless %w(new_order balance score_change custom).include?(msg_name) + return nil unless %w(new_order balance score_change distribute custom).include?(msg_name) VdMpMsg.create({ app_id: app_id, openid: openid, content: content.to_json, msg_name: msg_name, - template_msg: %w(new_order balance score_change).include?(msg_name), + template_msg: %w(new_order balance score_change distribute).include?(msg_name), status: 'none' }) end private