Module: Reapal::Api::User::OnekeyContract
- Defined in:
- lib/reapal/api/user/onekey_contract.rb
Instance Method Summary collapse
Instance Method Details
#onekey_contract(flow_id, true_name, identity_id, phone, bus_way = '01') ⇒ Hash
1.2 个人一键签约(API)
28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 |
# File 'lib/reapal/api/user/onekey_contract.rb', line 28 def onekey_contract(flow_id, true_name, identity_id, phone, bus_way='01') service = 'reapal.trust.onekeyContract' post_path = '/reagw/agreement/agree.htm' params = { orderNo: flow_id, userName: true_name, userIdentity: identity_id, userMobile: phone, busway: bus_way, remark: '', applyTime: Time.now.strftime('%Y-%m-%d %H:%M:%S'), } operate_post(:operate, service, params, post_path, Http::ErrorCode.contract_create, ['0000', '0007']) end |