Commit 3f088e0377a3149fb986604d21de961cba942301

Authored by chen
1 parent 6ed20e20
Exists in master

Update service.rb

Showing 1 changed file with 2 additions and 2 deletions   Show diff stats
lib/wx_pay/service.rb
... ... @@ -151,7 +151,7 @@ module WxPay
151 151  
152 152 def self.sendgroupredpack(params, options={})
153 153 params = {
154   - appid: options.delete(:appid) || WxPay.appid,
  154 + wxappid: options.delete(:appid) || WxPay.appid,
155 155 mch_id: options.delete(:mch_id) || WxPay.mch_id,
156 156 nonce_str: SecureRandom.uuid.tr('-', '')
157 157 }.merge(params)
... ... @@ -173,7 +173,7 @@ module WxPay
173 173  
174 174 def self.sendredpack(params, options={})
175 175 params = {
176   - appid: options.delete(:appid) || WxPay.appid,
  176 + wxappid: options.delete(:appid) || WxPay.appid,
177 177 mch_id: options.delete(:mch_id) || WxPay.mch_id,
178 178 nonce_str: SecureRandom.uuid.tr('-', '')
179 179 }.merge(params)
... ...