Module: Reapal::Api::User::MobileQuery

Defined in:
lib/reapal/api/user/mobile_query.rb

Instance Method Summary collapse

Instance Method Details

#mobile_query(contracts) ⇒ Hash

1.8 手机号查询



22
23
24
25
26
27
28
29
30
31
32
# File 'lib/reapal/api/user/mobile_query.rb', line 22

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