Skip to content

Commit

Permalink
d
Browse files Browse the repository at this point in the history
  • Loading branch information
yigefaxian committed Nov 10, 2024
1 parent 8b7bfcb commit 22b7200
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/apis/wx_pay/api/partner.rb
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,8 @@ def pay_micropay(out_trade_no:, auth_code:, body:, total_fee:, spbill_create_ip:
}
opts.merge! sign: WxPay::Sign::Hmac.generate(opts, key: @mch.key)

r = @client.with_options(origin: BASE, debug: Rails.logger.broadcasts[0].instance_values['logdev'].dev, debug_level: 2)
.post('pay/micropay', body: opts.to_xml(root: 'xml', skip_types: true, skip_instruct: true, dasherize: false))
r = @client.with_options(origin: BASE, debug: true, debug_level: 2)
.post('pay/micropay', body: opts.to_xml(root: 'xml', skip_types: true, skip_instruct: true, dasherize: false))
Hash.from_xml(r.to_s)['xml']
end

Expand Down

0 comments on commit 22b7200

Please sign in to comment.