lib/lanmao/form/form_helper.rb in lanmao-0.1.0 vs lib/lanmao/form/form_helper.rb in lanmao-0.2.0
- old
+ new
@@ -5,11 +5,10 @@
# 跳转到新网 Form 类的 api,统一返回处理
#
# @param service [ String ] 富民的服务
# @param params [ Hash ] 参数
- # @param post_path [ String ] post url
#
# @return [ Hash ] 结果集
# * form_method
# * url
# * method
@@ -23,10 +22,10 @@
{
form_method: {
:url => url,
:method => :post,
},
- form_data: body.merge(userDevice: params[:userDevice]),
+ form_data: body,
}
end
end # DataHelper
end