lib/reapal/api/user/mobile_query.rb in reapal-0.9.13 vs lib/reapal/api/user/mobile_query.rb in reapal-0.10.0

- old
+ new

@@ -3,13 +3,13 @@ module Reapal module Api module User module MobileQuery - # 1.8 手机号查询 + # 1.4 手机号查询 # - # @param contracts [ String ] 用户协议号 + # @param contract [ String ] 用户协议号 # # @return [ Hash ] 结果集 # * :result [String] 业务结果:'S/F/P' # * :request_params [Hash] 请求参数 # * :response [Object] 请求返回对象 @@ -17,15 +17,15 @@ # * :error_msg [String] 错误信息 # * :data: 具体业务返回信息 # * :contracts [String] 用户协议号 # * :mobile [String] 用户手机号 # - def mobile_query(contracts) + def mobile_query(contract) service = 'reapal.trust.mobileQuery' post_path = '/reagw/user/restApi.htm' params = { - contracts: contracts, + contracts: contract, queryTime: Time.now.strftime('%Y-%m-%d %H:%M:%S'), } res = operate_post(:query, service, params, post_path, Http::ErrorCode.mobile, ['0000'])