Module: Lanmao::Form::Account::PersonalRegisterExpandForm

Defined in:
lib/lanmao/form/account/personal_register_expand_form.rb

Instance Method Summary collapse

Instance Method Details

#personal_register_expand_form(user_no, flow_id, true_name, id_card_no, bank_card_no, phone, id_card_type, role_type, check_type, return_url, user_limit_type = 'ID_CARD_NO_UNIQUE', auth_list = '', fail_time = '', amount = '') ⇒ Hash

2.1 个人绑卡注册

Parameters:

  • fail_time (Time) (defaults to: '')

    授权期限

Returns:

  • (Hash)

    结果集

  • (Hash)

    结果集

    • :form_method

      • :method

      • :url

    • :form_data

      • :data



19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# File 'lib/lanmao/form/account/personal_register_expand_form.rb', line 19

def personal_register_expand_form(user_no, flow_id, true_name, id_card_no, bank_card_no, phone,
                                  id_card_type, role_type, check_type, return_url,
                                  user_limit_type='ID_CARD_NO_UNIQUE', auth_list='', fail_time='', amount='')
  service = 'PERSONAL_REGISTER_EXPAND'

  params = {
    platformUserNo: user_no,
    requestNo: flow_id,
    realName: true_name,
    idCardNo: id_card_no,
    bankcardNo: bank_card_no,
    mobile: phone,
    idCardType: id_card_type,
    userRole: role_type,
    checkType: check_type,
    redirectUrl: return_url,
    userLimitType: user_limit_type,
    authList: auth_list,
    failTime: fail_time,
    amount: amount,
  }

  res = get_form_data(service, params)

  res
end