Module: Reapal::Api::Tender::TenderAuthQuery

Defined in:
lib/reapal/api/tender/tender_auth_query.rb

Instance Method Summary collapse

Instance Method Details

#tender_auth_query(flow_id, contract) ⇒ Hash

3.13 标的授权查询



29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# File 'lib/reapal/api/tender/tender_auth_query.rb', line 29

def tender_auth_query(flow_id, contract)
  service = 'reapal.trust.authQuery'
  post_path = '/user/restApi.htm'

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

  res = operate_post(:query, service, params, post_path, Http::ErrorCode.tender_auth_query, ['0000'])

  Reapal.logger.info res

  res
end