Module: Lanmao::Form::DataHelper
- Defined in:
- lib/lanmao/form/form_helper.rb
Instance Method Summary collapse
-
#get_form_data(service, params) ⇒ Hash
跳转到新网 Form 类的 api,统一返回处理.
Instance Method Details
#get_form_data(service, params) ⇒ Hash
跳转到新网 Form 类的 api,统一返回处理
18 19 20 21 22 23 24 25 26 27 28 29 |
# File 'lib/lanmao/form/form_helper.rb', line 18 def get_form_data(service, params) request = Http::Request.new(params, @config, service, :gateway) body, url = request.get_body { form_method: { :url => url, :method => :post, }, form_data: body, } end |