Sha256: bf2adb348ec8b4fd17859e0ae56a2ccc351aa9cfbe3db1602bc63bc624977aee

Contents?: true

Size: 1.01 KB

Versions: 12

Compression:

Stored size: 1.01 KB

Contents

# coding: utf-8

module Reapal
  module Api
    module User
      module MobileQuery

        # 1.8 手机号查询
        #
        # @param contracts [ String ] 用户协议号
        #
        # @return [ Hash ] 结果集
        #   * :result [String] 业务结果:'S/F/P'
        #   * :request_params [Hash] 请求参数
        #   * :response [Object] 请求返回对象
        #   * :error_code [String] 错误代号
        #   * :error_msg [String] 错误信息
        #   * :data: 具体业务返回信息
        #     * :contracts [String] 用户协议号
        #     * :mobile [String] 用户手机号
        #
        def mobile_query(contracts)
          service = 'reapal.trust.mobileQuery'
          post_path = '/reagw/user/restApi.htm'

          params = {
            contracts: contracts,
            queryTime: Time.now.strftime('%Y-%m-%d %H:%M:%S'),
          }

          operate_post(:query, service, params, post_path, Http::ErrorCode.mobile, ['0000'])
        end

      end
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
reapal-0.9.12 lib/reapal/api/user/mobile_query.rb
reapal-0.9.11 lib/reapal/api/user/mobile_query.rb
reapal-0.9.10 lib/reapal/api/user/mobile_query.rb
reapal-0.9.9 lib/reapal/api/user/mobile_query.rb
reapal-0.9.7 lib/reapal/api/user/mobile_query.rb
reapal-0.9.6 lib/reapal/api/user/mobile_query.rb
reapal-0.9.5 lib/reapal/api/user/mobile_query.rb
reapal-0.9.3 lib/reapal/api/user/mobile_query.rb
reapal-0.9.2 lib/reapal/api/user/mobile_query.rb
reapal-0.9.1 lib/reapal/api/user/mobile_query.rb
reapal-0.9.0 lib/reapal/api/user/mobile_query.rb
reapal-0.3.0 lib/reapal/api/user/mobile_query.rb