lib/ll_pay.rb in ll_pay-0.5.0 vs lib/ll_pay.rb in ll_pay-0.6.0

- old
+ new

@@ -30,21 +30,21 @@ include RefundOrder include Service include Notify end - def self.request(verb, url, params = {}) + def self.request(verb, url, params = {}, options = {}) case verb.to_sym when :post @http_response = HTTP.post(url, json: params) when :get @http_response = HTTP.get(url) end response_hash = JSON.parse(@http_response.body.to_s) if @http_response.code == 200 - if response_hash['ret_code'] == 0000 - if LlPay::Sign.verify?(response_hash) + if response_hash['ret_code'] == '0000' + if LlPay::Sign.verify?(response_hash, options) return response_hash else return { ret_msg: '签名验证错误' } end else