Skip to content

fish_data,CardBin 和 IdCard 拓展 #243

Description

@mindjun

背景

  • 需要根据身份证号获取到省份、出生年月、性别信息以便根据这三个维度查询
  • 需要根据银行卡号获取到银行名称、卡种类信息以便根据这两个维度查询

步骤

  • CardBin 新加 get_card_detail 方法,传入银行卡号,返回银行名称和卡种类字典
  • IdCard 新加get_number_detail方法,传入与身份证号,返回省份、出生年月和性别字典

实现

>>> values = CardBin.get_card_detail('6212836989522229131')
>>> values
(True, {'bank_name': '中国银行', 'card_type': 'DC'})
>>> values = IdCard.get_number_detail('130522198407316471')
>>> values
(True, {'province': '130000', 'gender': '男', 'birth_date': '19840731'})

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions