CN112765224A - Automatic distributor code matching method and device and electronic equipment - Google Patents

Automatic distributor code matching method and device and electronic equipment Download PDF

Info

Publication number
CN112765224A
CN112765224A CN202110112077.8A CN202110112077A CN112765224A CN 112765224 A CN112765224 A CN 112765224A CN 202110112077 A CN202110112077 A CN 202110112077A CN 112765224 A CN112765224 A CN 112765224A
Authority
CN
China
Prior art keywords
issuer
data set
code
local data
issuer code
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110112077.8A
Other languages
Chinese (zh)
Inventor
陈恩泽
杨宜
邹永强
杨晖
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Accumulus Technologies Tianjin Co Ltd
Original Assignee
Accumulus Technologies Tianjin Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Accumulus Technologies Tianjin Co Ltd filed Critical Accumulus Technologies Tianjin Co Ltd
Priority to CN202110112077.8A priority Critical patent/CN112765224A/en
Publication of CN112765224A publication Critical patent/CN112765224A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2457Query processing with adaptation to user needs
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/248Presentation of query results

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computational Linguistics (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention provides an automatic issuer code matching method, an automatic issuer code matching device and electronic equipment, and relates to the technical field of computers. The method comprises the following steps: receiving a first request; selecting a target local data set from a plurality of local data sets, wherein each local data set stores a plurality of issuer codes with the same length and issuer information represented by each issuer code; for each target local data set, performing the following operations: extracting a first number from a bank card number; inquiring information of an issuer represented by the first number from the target local data set; if the inquiry is successful, the issuer code of the bank card number and the issuer information represented by the issuer code are returned; otherwise, returning to the step of selecting the target first local data set from the plurality of local data sets until the query is successful. The problems of poor expansion of the BIN, low matching automation degree, low matching speed, high matching cost and low matching precision of the card in the prior art are solved.

Description

Automatic distributor code matching method and device and electronic equipment
Technical Field
The embodiment of the invention relates to the technical field of computers, in particular to an automatic issuer code matching method, an automatic issuer code matching device and electronic equipment.
Background
When paying for Bank cards, information such as a Bank Number, a Bank opening Bank name and the like is generally required to be sent, and a commonly used processing method in the industry is that a used card BIN (Bank Identification Number) is generally 13-19 bits and consists of card BIN + card issuing Bank self-positioning + check position, and the card BIN is generally 6 bits before matching with a pre-stored card BIN library.
In the existing implementation mode, a card BIN is usually a fixed data set, the support for credit cards and financial cards is extremely limited, when a new card BIN appears, only unsupported error information and other post-manual intervention processes can be returned, the failure can also cause payment failure, and the user experience is extremely poor; and the manual treatment after the fact usually needs to search on the network, there are two obvious defects: 1. the labor cost is high 2. once the network information is irregular and the manual judgment fails, all the following transactions are affected, and the prior art cannot realize the requirements of automatic quick expansion and high precision on the data.
Disclosure of Invention
The embodiment of the invention provides an issuer code automatic matching method, an issuer code automatic matching device and electronic equipment, and aims to solve the problems of poor card BIN verification expansibility, low matching automation degree, low matching speed, high matching cost, low matching precision and the like in the prior art.
In order to solve the technical problem, the invention is realized as follows:
in a first aspect, an embodiment of the present invention provides an automatic issuer code matching method, including:
receiving a first request for an issuer code identifying a bank card number;
selecting a target local data set from a plurality of local data sets, wherein each local data set stores a plurality of issuer codes with the same length and issuer information represented by each issuer code, and the issuer codes stored in different local data sets have different lengths;
for each target local data set, performing the following operations:
extracting a first number from the bank card number, wherein the length of the first number is the same as that of an issuer code of the target local data set; querying issuer information represented by the first number from the target local data set;
if the inquiry is successful, the issuer code of the bank card number and the issuer information represented by the issuer code are returned; otherwise, returning to the step of selecting the target local data set from the plurality of local data sets, and returning the issuer code of the bank card number and the issuer information represented by the issuer code until the inquiry is successful.
Optionally, if the issuer code of the bank card number and the issuer information represented by the same are not queried after traversing all local data sets, the method further includes:
requesting a target external data set according to configuration items of a plurality of external data sets; each external data set stores a plurality of issuer codes with the same length and issuer information represented by each issuer code, and the issuer codes stored in different external data sets have different lengths;
for each target external data set, performing the following operations:
extracting a first number from the bank card number, wherein the length of the first number is the same as that of an issuer code of the target external data set; querying issuer information represented by the first number from the target external data set;
if the inquiry is successful, the issuer code of the bank card number and the issuer information represented by the issuer code are returned; otherwise, returning the step of requesting the target external data set according to the configuration items of the plurality of external data sets, and returning the issuer code of the bank card number and the issuer information represented by the issuer code until the inquiry is successful.
Optionally, after the issuer code of the bank card number and the issuer information represented by the issuer code are returned after the query is successful, the method further includes:
and saving the issuer code of the bank card number and the issuer information represented by the same to a local data set with the same issuer code length.
Optionally, the configuration item of the external data set includes at least one of a request address, a key, a configuration parameter, and an execution priority of the external data set.
Optionally, the local data set is saved in a hash set.
Optionally, after receiving the first request for identifying the issuer code of the bank card number, the method further includes:
loading a plurality of local data sets into a memory;
after the issuer code of the bank card number and the issuer information represented by the same are saved to a local data set with the same issuer code length, the method further comprises the following steps:
and updating the local data sets with the same issuer code length into a memory.
Optionally, after the issuer code of the bank card number and the issuer information represented by the issuer code are returned after the query is successful, the method further includes:
responding to the issuer code of the bank card number and the issuer information represented by the bank card number, and executing entity service according to the issuer information.
In a second aspect, an embodiment of the present invention further provides an automatic issuer code matching apparatus, including:
a receiving module for receiving a first request for identifying an issuer code of a bank card number;
the system comprises a first selection module, a second selection module and a third selection module, wherein the first selection module is used for selecting a target local data set from a plurality of local data sets, each local data set stores a plurality of issuer codes with the same length and issuer information represented by each issuer code, and the issuer codes stored in different local data sets are different in length;
a first execution module to, for each target local data set, perform the following:
extracting a first number from the bank card number, wherein the length of the first number is the same as that of an issuer code of the target local data set; querying issuer information represented by the first number from the target local data set;
if the inquiry is successful, the issuer code of the bank card number and the issuer information represented by the issuer code are returned; otherwise, returning to the step of selecting the target local data set from the plurality of local data sets, and returning the issuer code of the bank card number and the issuer information represented by the issuer code until the inquiry is successful.
Optionally, the method further includes:
the second selection module is used for requesting a target external data set according to the configuration items of the plurality of external data sets; each external data set stores a plurality of issuer codes with the same length and issuer information represented by each issuer code, and the issuer codes stored in different external data sets have different lengths;
a second execution module for executing the following operations for each target external data set:
extracting a first number from the bank card number, wherein the length of the first number is the same as that of an issuer code of the target external data set; querying issuer information represented by the first number from the target external data set;
if the inquiry is successful, the issuer code of the bank card number and the issuer information represented by the issuer code are returned; otherwise, returning the step of requesting the target external data set according to the configuration items of the plurality of external data sets, and returning the issuer code of the bank card number and the issuer information represented by the issuer code until the inquiry is successful.
In a third aspect, an embodiment of the present invention further provides an electronic device, including: a processor, a memory and a program stored on the memory and executable on the processor, which when executed by the processor, implement the steps of the issuer code automatic matching method according to any one of the first aspect.
In a fourth aspect, the present invention further provides a readable storage medium, on which a program is stored, where the program, when executed by a processor, implements the steps of the issuer code automatic matching method according to any one of the first aspect.
In the embodiment of the invention, each local data set stores a plurality of issuer codes with the same length and issuer information represented by each issuer code, the issuer codes stored in different local data sets have different lengths, a first number of a bank card number is extracted for each target local data set until query is successful or all target local data sets are traversed, the length of the first number is the same as that of the issuer codes of the target local data sets, automatic matching of the issuer codes of the bank card number is realized, and the automation degree, the matching speed and the matching precision of checking a card bin are improved; the local data set supports transverse thermal expansion, expands a bin data set, and has strong applicability.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the invention. Also, like reference numerals are used to refer to like parts throughout the drawings. In the drawings:
fig. 1 is a schematic flow chart of an issuer code automatic matching method according to an embodiment of the present invention;
fig. 2 is a second schematic flowchart of an issuer code automatic matching method according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of an issuer code automatic matching device according to an embodiment of the present invention;
fig. 4 is a second schematic structural diagram of an issuer code automatic matching device according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present invention;
fig. 6 is a third flowchart of an issuer code automatic matching method according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1, fig. 1 is a flow chart illustrating an issuer code automatic matching method according to an embodiment of the present invention; the invention provides an automatic matching method of an issuer code, which comprises the following steps:
step 11: receiving a first request for an issuer code identifying a bank card number;
step 12: selecting a target local data set from a plurality of local data sets, wherein each local data set stores a plurality of issuer codes with the same length and issuer information represented by each issuer code, and the issuer codes stored in different local data sets have different lengths;
step 13: for each target local data set, performing the following operations:
extracting a first number from the bank card number, wherein the length of the first number is the same as that of an issuer code of the target local data set; querying issuer information represented by the first number from the target local data set;
if the inquiry is successful, the issuer code of the bank card number and the issuer information represented by the issuer code are returned; otherwise, returning to the step of selecting the target local data set from the plurality of local data sets, and returning the issuer code of the bank card number and the issuer information represented by the issuer code until the inquiry is successful.
In the embodiment of the invention, each local data set stores a plurality of issuer codes with the same length and issuer information represented by each issuer code, the issuer codes stored in different local data sets have different lengths, a first number of a bank card number is extracted for each target local data set until query is successful or all target local data sets are traversed, the length of the first number is the same as that of the issuer codes of the target local data sets, automatic matching of the issuer codes of the bank card number is realized, and the automation degree, the matching speed and the matching precision of checking a card bin are improved; the local data set supports transverse thermal expansion, expands a bin data set, and has strong applicability.
In some embodiments of the present invention, optionally, the execution order of each target data set further optimizes the rate and efficiency of issuer code automatic matching by setting the execution priority in a preset order.
In some embodiments of the present invention, optionally, the length of the issuer code of the local data set is 6 bits, 7 bits, 8 bits, or 9 bits, so that automatic identification of issuer codes with different lengths is realized, the rate and the matching accuracy of automatic matching are improved, and the adaptability is high; the execution priority of a local data set having an issuer code of 6 bits length may be set to a first execution priority.
Referring to fig. 2, fig. 2 is a second schematic flow chart of an issuer code automatic matching method according to an embodiment of the present invention;
in some embodiments of the present invention, optionally, if the issuer code of the bank card number and the issuer information represented by the bank card number are not queried after traversing all local data sets, the method further includes:
step 14: requesting a target external data set according to configuration items of a plurality of external data sets; each external data set stores a plurality of issuer codes with the same length and issuer information represented by each issuer code, and the issuer codes stored in different external data sets have different lengths;
step 15: for each target external data set, performing the following operations:
extracting a first number from the bank card number, wherein the length of the first number is the same as that of an issuer code of the target external data set; querying issuer information represented by the first number from the target external data set;
if the inquiry is successful, the issuer code of the bank card number and the issuer information represented by the issuer code are returned; otherwise, returning the step of requesting the target external data set according to the configuration items of the plurality of external data sets, and returning the issuer code of the bank card number and the issuer information represented by the issuer code until the inquiry is successful.
In the embodiment of the invention, a query data set is an external data set, if the issuer codes of the bank card numbers and the issuer information represented by the issuer codes are not queried after traversing all local data sets, a target external data set is requested according to configuration items of the external data set, each external data set stores a plurality of issuer codes with the same length and issuer information represented by each issuer code, the issuer codes stored in different external data sets have different lengths, a first number of the bank card number is extracted for each target external data set until the query is successful or all target external data sets are traversed, the length of the first number is the same as that of the issuer codes of the target external data set, the automatic matching of the issuer codes of the bank card numbers is realized, the automatic matching degree of checking card bins is further optimized, the matching speed, the matching cost and the matching cost are further optimized, Matching precision and matching range; the external data set supports the configured transverse thermal expansion, realizes the dynamic expansion of the data set, and further improves the expandability of the bin data set.
In some embodiments of the present invention, optionally, after the successfully querying returns the issuer code of the bank card number and the issuer information represented by the same, the method further includes:
step 16: updating the issuer code of the bank card number and the issuer information represented by the same to a local data set having the same issuer code length.
In the embodiment of the invention, the issuer codes matched with the external data set and the issuer information represented by the issuer codes are updated to the local data set with the same issuer code length, so that the automatic matching of the issuer codes and the automatic expansion of the data set stored with the issuer codes and the issuer information represented by the issuer codes are realized.
In some embodiments of the present invention, optionally, the successfully querying further includes, after returning the issuer code of the bank card number and the issuer information represented by the issuer code: verifying the issuer information;
and if the issuer information is not the target issuer, exiting the query.
In the embodiment of the invention, after the issuer code is automatically matched according to the local or external data set, whether the entity service is executed or not can be indirectly controlled by further verifying the information required for verifying the issuer, so that the fine granularity of the automatic execution of the entity service is improved.
In some embodiments of the present invention, optionally, the configuration item of the external data set includes at least one of a request address, a key, a configuration parameter, and an execution priority of the external data set.
In the embodiment of the invention, the configuration item of the external data set comprises one item of a request address, a key, a configuration parameter and an execution priority, so that the structure for realizing the external data set request is simple and easy to maintain; each external data set is supported and configured with an execution priority that better conforms to the actual issuer code matching requirements of the user.
In some embodiments of the invention, the external data set is optionally a variety of data sources including free or charged.
In the embodiment of the invention, the common mature third-party data set for access has high data quality and can be dynamically expanded into a new data set, and the automatic issuer code matching framework which is matched with the local data set query structure and the external data set query structure in the technical scheme realizes high automation degree, wide matching range, high matching precision, high matching rate, low implementation cost and easy maintenance is realized.
In some embodiments of the present invention, optionally, the local data set is saved in a hash set.
In some embodiments of the invention, the local data set is stored in a hash set form, so that the query efficiency and the automatic matching efficiency of the issuer code of the bank card number are further improved.
In some embodiments of the present invention, optionally, after receiving the first request for identifying the issuer code of the bank card number, the method further includes:
loading a plurality of local data sets into a memory;
after the issuer code of the bank card number and the issuer information represented by the same are saved to a local data set with the same issuer code length, the method further comprises the following steps:
and updating the local data sets with the same issuer code length into a memory.
In the embodiment of the invention, the local data sets are stored in a database, and a plurality of local data sets are preloaded into the internal memory after a first request of an issuer code for identifying a bank card number is received; storing the issuer codes matched with the external data set and issuer information represented by the issuer codes in a local data set with the same issuer code length, and updating the local data set with the same issuer code length to an internal memory for automatic matching of the next issuer codes; based on the implementation mode of preloading the data set into the memory, the automatic matching rate, the automatic expanding rate and the automatic matching precision of the issuer code are further improved.
In some embodiments of the present invention, optionally, in a matching algorithm level, 7 data sets are divided according to the length of an issuer code, matching can be completed by matching at most 7 times if one bank card number is a known issuer code, the complexity of matching time is O (1) each time, the algorithm has high matching efficiency under implementation, and data can be dynamically maintained in a memory; when the data is updated regularly for 5 minutes, the memory data can be updated in real time after the external data set passes, and the searching efficiency is further improved.
In some embodiments of the present invention, optionally, after the successfully querying returns the issuer code of the bank card number and the issuer information represented by the same, the method further includes:
step 21: responding to the issuer code of the bank card number and the issuer information represented by the bank card number, and executing entity service according to the issuer information.
In some embodiments of the present invention, after the automatic matching of the issuer codes is realized through the local data set and the external data set, the entity service is automatically initiated and executed according to the entity information, and an automatic entity service execution method with a simple structure, easy maintenance and low understanding cost is provided.
In some embodiments of the invention, optionally, the entity service may be a payment service or a verification service.
Referring to fig. 6, fig. 6 is a third schematic flowchart illustrating an issuer code automatic matching method according to an embodiment of the present invention; the automatic issuer code matching method comprises the following steps:
step 51: initiating an automatic verification request for an issuer code of a bank card number, the issuer code for performing a payment service;
step 52: requesting hash sets in a memory, wherein each hash set stores a plurality of issuer codes with the same length and issuer information represented by each issuer code, and the issuer codes stored in different hash sets have different lengths; for each target hash set, performing the following operations:
extracting a first number from the bank card number, wherein the length of the first number is the same as that of an issuer code of the target hash set; inquiring issuer information represented by the first number from the target hash set;
step 53: if the matching is successful, responding the issuer code of the bank card number and the issuer information represented by the issuer code to a local database; otherwise, returning the step of requesting the target hash set from the plurality of hash sets until the matching is successful, and responding the issuer code of the bank card number and the issuer information represented by the issuer code to a local database;
step 541, if the matching is successful, responding the issuer code of the bank card number and the issuer information represented by the issuer code to a payment service terminal, and executing the payment service; otherwise, go to step 542;
step 542: loading an external data set configuration item, wherein the external data set configuration item comprises one item of a request address, a secret key, configuration parameters and execution priority of the external data set configuration item;
step 55: requesting external data sets in order according to the configuration items; each external data set stores a plurality of issuer codes with the same length and issuer information represented by each issuer code, and the issuer codes stored in different external data sets have different lengths; for each target external data set, performing the following operations:
extracting a first number from the bank card number, wherein the length of the first number is the same as that of an issuer code of the target external data set; querying issuer information represented by the first number from the target external data set;
step 56: if the matching is successful, responding the issuer code of the bank card number and the issuer information represented by the issuer code to a local database; otherwise, returning the step of requesting the external data set according to the configuration items in sequence, and responding the issuer code of the bank card number and the issuer information represented by the issuer code to a local database until the matching is successful;
and 57, if the matching is successful, responding the issuer code of the bank card number and the issuer information represented by the same to a payment service terminal, and executing the payment service.
In the embodiment of the invention, based on the local data set query structure and the external data set query structure, an issuer code automatic matching framework which has the advantages of high automation degree, wide matching range, high matching precision, high matching rate, automatically expandable data, low implementation cost and easy maintenance is provided, the issuer codes of the input bank card numbers and the entity information represented by the issuer codes are automatically matched based on the framework, the execution efficiency, the payment success rate and the user experience of the payment service are improved, and the service operation cost is reduced.
Referring to fig. 3, fig. 3 is a schematic structural diagram of an issuer code automatic matching device according to an embodiment of the present invention;
the embodiment of the present invention further provides an automatic issuer code matching device 30, which includes:
a receiving module 31 for receiving a first request for identifying an issuer code of a bank card number;
a first selection module 32, configured to select a target local data set from multiple local data sets, where each local data set stores multiple issuer codes with the same length and issuer information represented by each issuer code, and the issuer codes stored in different local data sets have different lengths;
a first executing module 33, configured to, for each target local data set, perform the following operations:
extracting a first number from the bank card number, wherein the length of the first number is the same as that of an issuer code of the target local data set; querying issuer information represented by the first number from the target local data set;
if the inquiry is successful, the issuer code of the bank card number and the issuer information represented by the issuer code are returned; otherwise, returning to the step of selecting the target local data set from the plurality of local data sets, and returning the issuer code of the bank card number and the issuer information represented by the issuer code until the inquiry is successful.
In the embodiment of the invention, each local data set stores a plurality of issuer codes with the same length and issuer information represented by each issuer code, the issuer codes stored in different local data sets have different lengths, a first number of a bank card number is extracted for each target local data set until query is successful or all target local data sets are traversed, the length of the first number is the same as that of the issuer codes of the target local data sets, automatic matching of the issuer codes of the bank card number is realized, and the automation degree, the matching speed and the matching precision of checking a card bin are improved; the local data set supports transverse thermal expansion, expands a bin data set, and has strong applicability.
Referring to fig. 4, fig. 4 is a second schematic structural diagram of an issuer code automatic matching device 30 according to an embodiment of the present invention;
in some embodiments of the present invention, optionally, further comprising:
a second selection module 34, configured to request a target external data set according to a configuration item of the plurality of external data sets; each external data set stores a plurality of issuer codes with the same length and issuer information represented by each issuer code, and the issuer codes stored in different external data sets have different lengths;
a second executing module 35, configured to, for each target external data set, execute the following operations:
extracting a first number from the bank card number, wherein the length of the first number is the same as that of an issuer code of the target external data set; querying issuer information represented by the first number from the target external data set;
if the inquiry is successful, the issuer code of the bank card number and the issuer information represented by the issuer code are returned; otherwise, returning the step of requesting the target external data set according to the configuration items of the plurality of external data sets, and returning the issuer code of the bank card number and the issuer information represented by the issuer code until the inquiry is successful.
In the embodiment of the invention, a query data set is an external data set, if the issuer codes of the bank card numbers and the issuer information represented by the issuer codes are not queried after traversing all local data sets, a target external data set is requested according to configuration items of the external data set, each external data set stores a plurality of issuer codes with the same length and issuer information represented by each issuer code, the issuer codes stored in different external data sets have different lengths, a first number of the bank card number is extracted for each target external data set until the query is successful or all target external data sets are traversed, the length of the first number is the same as that of the issuer codes of the target external data set, the automatic matching of the issuer codes of the bank card numbers is realized, the automatic matching degree of checking card bins is further optimized, the matching speed, the matching cost and the matching cost are further optimized, Matching precision and matching range; the external data set supports the configured transverse thermal expansion, realizes the dynamic expansion of the data set, and further improves the expandability of the bin data set.
In some embodiments of the present invention, optionally, further comprising: an update module 36 for updating the issuer code of the bank card number and the issuer information it represents to a local data set having the same issuer code length.
In some embodiments of the present invention, the issuer code matched by the external data set and the issuer information represented by the issuer code are updated to the local data set with the same issuer code length, so that automatic matching of the issuer code automatic matching device and automatic expansion of the data set stored with the issuer code and the issuer information represented by the issuer code are realized.
In some embodiments of the present invention, optionally, the configuration item of the external data set includes at least one of a request address, a key, a configuration parameter, and an execution priority of the external data set.
In some embodiments of the present invention, the configuration item of the external data set includes one item of the request address, the key, the configuration parameter and the execution priority, so that the request structure of the external data set is simple and easy to maintain; each external data set is supported and configured with an execution priority that better conforms to the actual issuer code matching requirements of the user.
In some embodiments of the present invention, optionally, the local data set is saved in a hash set.
In some embodiments of the invention, the local data set is stored in a hash set form, so that the query efficiency and the automatic matching efficiency of the issuer code of the bank card number are further improved.
In some embodiments of the present invention, optionally, the first selection module 32 is further configured to load a plurality of local data sets into the memory after receiving the first request for identifying the issuer code of the bank card number;
the first selection module 32 is further configured to update the local data set with the same issuer code length to the memory after the issuer code of the bank card number and the issuer information represented by the same are saved to the local data set with the same issuer code length.
In some embodiments of the invention, the local data sets are stored in a database, and the plurality of local data sets are preloaded into the memory after receiving a first request for an issuer code identifying a bank card number; storing the issuer codes matched with the external data set and issuer information represented by the issuer codes in a local data set with the same issuer code length, and updating the local data set with the same issuer code length to an internal memory for automatic matching of the next issuer codes; the automatic distributor code matching device is based on the implementation mode that the data set is pre-loaded into the memory, and further improves the automatic matching rate, the automatic expansion rate and the automatic matching precision of the distributor code.
In some embodiments of the present invention, optionally, the third executing module 37 is further configured to, after returning the issuer code of the bank card number and the issuer information represented by the issuer code if the query is successful, respond to the issuer code of the bank card number and the issuer information represented by the issuer code of the bank card number, and execute entity service according to the issuer information.
In the embodiment of the invention, after the automatic matching of the issuer codes is realized through the local data set and the external data set, the entity service is automatically initiated and executed according to the entity information, the automatic issuer code matching device provides an automatic entity service execution mode which is simple in structure, easy to maintain and low in understanding cost, the entity information is automatically matched and can be automatically expanded to realize the hot updating to the self matching library, the automatic entity service execution is efficient and accurate, the user experience is high, and the operation efficiency is high.
Referring to fig. 5, fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present invention, and the present invention further provides an electronic device 40, including: the processor 41, the memory 42, and the program stored in the memory 42 and capable of running on the processor 41, when executed by the processor 41, implement the processes of the embodiment of the issuer code automatic matching method as described above, and can achieve the same technical effects, and in order to avoid repetition, the details are not repeated here.
The embodiment of the present invention further provides a readable storage medium, where a program is stored on the readable storage medium, and when the program is executed by a processor, the program implements each process of the above-mentioned embodiment of the issuer code automatic matching method, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (10)

1. An issuer code automatic matching method, comprising:
receiving a first request for an issuer code identifying a bank card number;
selecting a target local data set from a plurality of local data sets, wherein each local data set stores a plurality of issuer codes with the same length and issuer information represented by each issuer code, and the issuer codes stored in different local data sets have different lengths;
for each target local data set, performing the following operations:
extracting a first number from the bank card number, wherein the length of the first number is the same as that of an issuer code of the target local data set; querying issuer information represented by the first number from the target local data set;
if the inquiry is successful, the issuer code of the bank card number and the issuer information represented by the issuer code are returned; otherwise, returning to the step of selecting the target local data set from the plurality of local data sets, and returning the issuer code of the bank card number and the issuer information represented by the issuer code until the inquiry is successful.
2. The issuer code automatic matching method of claim 1,
if the issuer code of the bank card number and the issuer information represented by the bank card number are not inquired after traversing all the local data sets, the method further comprises the following steps:
requesting a target external data set according to configuration items of a plurality of external data sets; each external data set stores a plurality of issuer codes with the same length and issuer information represented by each issuer code, and the issuer codes stored in different external data sets have different lengths;
for each target external data set, performing the following operations:
extracting a first number from the bank card number, wherein the length of the first number is the same as that of an issuer code of the target external data set; querying issuer information represented by the first number from the target external data set;
if the inquiry is successful, the issuer code of the bank card number and the issuer information represented by the issuer code are returned; otherwise, returning the step of requesting the target external data set according to the configuration items of the plurality of external data sets, and returning the issuer code of the bank card number and the issuer information represented by the issuer code until the inquiry is successful.
3. The issuer code automatic matching method of claim 2, wherein after returning the issuer code of the bank card number and the issuer information represented by the issuer code if the query is successful, the method further comprises:
updating the issuer code of the bank card number and the issuer information represented by the same to a local data set having the same issuer code length.
4. The issuer code auto-matching method of claim 2, wherein the configuration items of the external data set include at least one of a request address, a key, configuration parameters, and an execution priority of the external data set.
5. The issuer code auto-matching method of claim 1, wherein the local dataset is saved in a hashed set.
6. The issuer code auto-matching method of claim 3, wherein after receiving the first request for an issuer code identifying a bank card number, further comprising:
loading a plurality of local data sets into a memory;
after the issuer code of the bank card number and the issuer information represented by the same are saved to a local data set with the same issuer code length, the method further comprises the following steps:
and updating the local data sets with the same issuer code length into a memory.
7. The issuer code automatic matching method according to claim 1 or 2, wherein after the inquiry is successful and the issuer code of the bank card number and the issuer information represented by the bank card number are returned, the method further comprises:
responding to the issuer code of the bank card number and the issuer information represented by the bank card number, and executing entity service according to the issuer information.
8. An issuer code automatic matching device, comprising:
a receiving module for receiving a first request for identifying an issuer code of a bank card number;
the system comprises a first selection module, a second selection module and a third selection module, wherein the first selection module is used for selecting a target local data set from a plurality of local data sets, each local data set stores a plurality of issuer codes with the same length and issuer information represented by each issuer code, and the issuer codes stored in different local data sets are different in length;
a first execution module to, for each target local data set, perform the following:
extracting a first number from the bank card number, wherein the length of the first number is the same as that of an issuer code of the target local data set; querying issuer information represented by the first number from the target local data set;
if the inquiry is successful, the issuer code of the bank card number and the issuer information represented by the issuer code are returned; otherwise, returning to the step of selecting the target local data set from the plurality of local data sets, and returning the issuer code of the bank card number and the issuer information represented by the issuer code until the inquiry is successful.
9. An electronic device, comprising: processor, memory and a program stored on the memory and executable on the processor, which when executed by the processor implements the steps of the issuer code automatic matching method as claimed in any one of claims 1 to 7.
10. A readable storage medium, characterized in that the readable storage medium has stored thereon a program which, when executed by a processor, implements the steps of the issuer code automatic matching method as claimed in any one of claims 1 to 7.
CN202110112077.8A 2021-01-27 2021-01-27 Automatic distributor code matching method and device and electronic equipment Pending CN112765224A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110112077.8A CN112765224A (en) 2021-01-27 2021-01-27 Automatic distributor code matching method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110112077.8A CN112765224A (en) 2021-01-27 2021-01-27 Automatic distributor code matching method and device and electronic equipment

Publications (1)

Publication Number Publication Date
CN112765224A true CN112765224A (en) 2021-05-07

Family

ID=75707534

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110112077.8A Pending CN112765224A (en) 2021-01-27 2021-01-27 Automatic distributor code matching method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN112765224A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104809157A (en) * 2015-03-25 2015-07-29 小米科技有限责任公司 Number recognition method and device
CN108563685A (en) * 2018-03-13 2018-09-21 阿里巴巴集团控股有限公司 A kind of querying method, device and the equipment of bank identifier code
CN109933644A (en) * 2019-03-22 2019-06-25 中国农业银行股份有限公司 A kind of character string matching method and device
CN110909212A (en) * 2019-10-11 2020-03-24 中国平安财产保险股份有限公司 Bank identification code matching method and equipment
CN111915816A (en) * 2020-06-03 2020-11-10 中国建设银行股份有限公司 Card-swallowing retrieving method and device, electronic equipment and computer-readable storage medium
CN112116452A (en) * 2020-09-28 2020-12-22 中国银行股份有限公司 Transaction processing method and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104809157A (en) * 2015-03-25 2015-07-29 小米科技有限责任公司 Number recognition method and device
CN108563685A (en) * 2018-03-13 2018-09-21 阿里巴巴集团控股有限公司 A kind of querying method, device and the equipment of bank identifier code
CN109933644A (en) * 2019-03-22 2019-06-25 中国农业银行股份有限公司 A kind of character string matching method and device
CN110909212A (en) * 2019-10-11 2020-03-24 中国平安财产保险股份有限公司 Bank identification code matching method and equipment
CN111915816A (en) * 2020-06-03 2020-11-10 中国建设银行股份有限公司 Card-swallowing retrieving method and device, electronic equipment and computer-readable storage medium
CN112116452A (en) * 2020-09-28 2020-12-22 中国银行股份有限公司 Transaction processing method and device

Similar Documents

Publication Publication Date Title
US8458071B2 (en) Instantaneous merchant information retrieval for financial transactions
CN107193827B (en) Idempotent control method and device for sub-base and sub-table
CN112487083B (en) Data verification method and device
CN110795171B (en) Service data processing method, device, computer equipment and storage medium
US10402406B2 (en) Predictive database for computer processes
CN106155775B (en) Message processing method, device and system
US20130173509A1 (en) Method and arrangement for processing data
CN112181902B (en) Database storage method and device and electronic equipment
CN109358874A (en) Business rule update method, device, computer equipment and storage medium
CN108874661A (en) Test mapping relations library generating method, device, computer equipment and storage medium
CN116561389A (en) Text matching method, device, equipment and storage medium
CN109710619B (en) Database capacity expansion method, device and readable medium
CN111125240B (en) Distributed transaction realization method and device, electronic equipment and storage medium
US10922680B2 (en) Method of processing card number data and device
CN112765224A (en) Automatic distributor code matching method and device and electronic equipment
CN110598479B (en) Data processing method, device and computer readable storage medium
CN112765215A (en) Data query method and device
CN111309746A (en) Asynchronous parallel data synchronization method and device
CN108280355A (en) A kind of data desensitization method and device
CN114925131B (en) Automatic traversal method for data synchronization
CN114564501A (en) Database data storage and query methods, devices, equipment and medium
CN111651466B (en) Data sampling method and device
CN113504957A (en) Table data processing method and device, computer equipment and storage medium
CN113064902A (en) Method and device for retrieving transaction data on chain and electronic equipment
CN111752978A (en) Method, device and system for selecting bin route based on distributed cache

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20210507

RJ01 Rejection of invention patent application after publication