lib/reapal/form/withdraw_apply_form.rb in reapal-0.2.2 vs lib/reapal/form/withdraw_apply_form.rb in reapal-0.3.0
- old
+ new
@@ -10,11 +10,11 @@
# @param flow_id [String] 订单号
# @param money [Number] 提现金额,2位小数
# @param charge [Number] 手续费,2位小数
# @param return_url [String] 回调 url
# @param notify_url [String] 通知 url
- # @param buyway [String] 设备通道,默认手机端。00:PC端;01:手机端;02:Pad端;03:其它
+ # @param busway [String] 设备通道,默认手机端。00:PC端;01:手机端;02:Pad端;03:其它
#
# @return [ Hash ] 结果集
# * :form_method
# * :method
# * :url
@@ -36,18 +36,10 @@
returnUrl: return_url,
notifyUrl: notify_url,
applyTime: Time.now.strftime('%Y-%m-%d %H:%M:%S'),
}
- form_data = Http.get_body(service, params, @config)
-
- {
- form_method: {
- method: :post,
- url: config[:server_url] + post_path,
- },
- form_data: form_data
- }
+ get_form_data(service, params, post_path)
end
end
end
end