Module: Reapal::Api::User::OnekeyBatchContract
- Defined in:
- lib/reapal/api/user/onekey_batch_contract.rb
Instance Method Summary collapse
Instance Method Details
#onekey_batch_contract(flow_id, true_name, identity_id, phone, is_to_sms, bank_code, card_id, card_province, card_city, card_branch, card_sub_branch, user_type, busway = '01', remark = '') ⇒ Hash
5.2 历史用户迁移(四要素)
35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 |
# File 'lib/reapal/api/user/onekey_batch_contract.rb', line 35 def onekey_batch_contract(flow_id, true_name, identity_id, phone, is_to_sms, bank_code, card_id, card_province, card_city, card_branch, card_sub_branch, user_type, busway='01', remark='') service = 'reapal.trust.onekeyBatchContract' post_path = '/agreement/agree.htm' params = { orderNo: flow_id, userName: true_name, userIdentity: identity_id, userMobile: phone, busway: busway, remark: remark, isToSms: is_to_sms, bankCode: bank_code, bankAccountNo: card_id, accountProvince: card_province, accountCity: card_city, branch: card_branch, subbranch: card_sub_branch, userType: user_type, applyTime: Time.now.strftime('%Y-%m-%d %H:%M:%S'), } res = operate_post(:operate, service, params, post_path, Http::ErrorCode.contract_create, ['0000', '0007']) Reapal.logger.info res res end |