CN111144867B - Method and device for generating region code mapping relation - Google Patents
Method and device for generating region code mapping relation Download PDFInfo
- Publication number
- CN111144867B CN111144867B CN201911415710.XA CN201911415710A CN111144867B CN 111144867 B CN111144867 B CN 111144867B CN 201911415710 A CN201911415710 A CN 201911415710A CN 111144867 B CN111144867 B CN 111144867B
- Authority
- CN
- China
- Prior art keywords
- area code
- transaction
- mapping relation
- navigation
- trading
- 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.)
- Active
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q20/00—Payment architectures, schemes or protocols
- G06Q20/08—Payment architectures
- G06Q20/10—Payment architectures specially adapted for electronic funds transfer [EFT] systems; specially adapted for home banking systems
- G06Q20/108—Remote banking, e.g. home banking
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q20/00—Payment architectures, schemes or protocols
- G06Q20/38—Payment protocols; Details thereof
- G06Q20/40—Authorisation, e.g. identification of payer or payee, verification of customer or shop credentials; Review and approval of payers, e.g. check credit lines or negative lists
- G06Q20/405—Establishing or using transaction specific rules
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q40/00—Finance; Insurance; Tax strategies; Processing of corporate or income taxes
- G06Q40/02—Banking, e.g. interest calculation or account maintenance
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q40/00—Finance; Insurance; Tax strategies; Processing of corporate or income taxes
- G06Q40/04—Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange
Landscapes
- Business, Economics & Management (AREA)
- Accounting & Taxation (AREA)
- Finance (AREA)
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Economics (AREA)
- Strategic Management (AREA)
- Development Economics (AREA)
- General Business, Economics & Management (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Marketing (AREA)
- Technology Law (AREA)
- Computer Security & Cryptography (AREA)
- Navigation (AREA)
Abstract
The application provides a method and a device for generating a region code mapping relation, wherein the method comprises the following steps: inquiring a trading area code corresponding to the position information in a trading area code library through the position information in the navigation area code of the simulated position, and if the trading area code is acquired, generating a mapping relation between the navigation area code and the trading area code corresponding to the position information; if not, selecting trading area codes one by one from the trading area code library to carry out simulated trading, and generating a mapping relation between the navigation area codes and the trading area codes used when the simulated trading is successful. Therefore, by inquiring in the transaction area code library and simulating transaction, the generation of the mapping relation between the navigation area code and the transaction area code can be realized, the test can be directly carried out according to the generated mapping relation, the verification by a Unionpay system is not needed during each test, the test flow is simplified, and the test efficiency is improved.
Description
Technical Field
The present application relates to the field of testing, and in particular, to a method and an apparatus for generating a region code mapping relationship.
Background
With the rapid development of payment technology and the expansion of banking range, bank cards belonging to different commercial banks can be used across banks in the process of daily consumption transactions. In order to realize resource sharing and data intercommunication among systems of various commercial banks, china bank card union organization, hereinafter referred to as Unionpay, realizes cross-bank use of bank cards through a Unionpay cross-bank transaction clearing system.
Along with the needs of a mobile payment market, more and more personal transfer transactions occur, and in order to ensure the safety of the personal transfer transactions, when a user conducts mobile phone cross-bank transfer, the user needs to provide an area code of a transaction place for the UnionPay according to the UnionPay cross-bank service area code standard so that the UnionPay can control the risk of the transaction. When the functions of the cross-bank related transaction of the mobile phone bank are tested and developed, because the mobile phone bank generally obtains the international area code according to the global positioning system and is different from the standard of the bank union cross-bank service area code, the subsequent operation can be carried out only by providing the bank union cross-bank service area code corresponding to the international area code for the bank union, and the development and the test of the related service are completed. Because the international area code and the Unionpay cross-line service area code cannot directly correspond to each other, the international area code needs to be converted into the corresponding Unionpay cross-line service area code in each test, and the international area code needs to be connected with a Unionpay system for verification, so that the test flow is long, the test process is inconvenient, and the test efficiency is low.
Disclosure of Invention
In order to solve the technical problems in the prior art, the application provides a method and a device for generating a mapping relationship of a region code, and the method and the device can be used for solving the problem that the test process is inconvenient due to the fact that verification is achieved through an external UnionPay system during testing in the prior art by generating the mapping relationship between a navigation region code and a transaction region code.
The embodiment of the application discloses the following technical scheme:
in a first aspect, an embodiment of the present application provides a method for generating a region code mapping relationship, where the method includes:
acquiring a navigation area code from a navigation system according to the simulated position, and determining position information in the navigation area code;
inquiring a trading area code corresponding to the position information from a trading area code library according to the position information; if the transaction area code corresponding to the position information exists, generating a mapping relation between the navigation area code and the transaction area code corresponding to the position information;
if the transaction area code corresponding to the position information does not exist, the transaction area codes are selected one by one from the transaction area code library to carry out simulated transaction until the simulated transaction is successful;
and generating a mapping relation between the navigation area code and the transaction area code used when the simulated transaction is successful.
Optionally, the location information in the navigation area code is a name of a province corresponding to the simulation location;
inquiring a transaction area code corresponding to the position information from a transaction area code library according to the position information, which specifically comprises the following steps:
and inquiring a transaction area code library corresponding to the province name from a transaction area code library through keyword matching according to the province name.
Optionally, the selecting transaction area codes one by one from the transaction area code library to perform simulated transaction includes:
and selecting the trading area codes one by one from the trading area code library according to a preset selection sequence to carry out simulated trading.
Optionally, when the transaction area code is a union pay cross-bank service area code, the simulated transaction is a simulated personal cross-bank transaction.
Optionally, the method further includes:
acquiring a mapping relation between the navigation area code and the transaction area code, and verifying the mapping relation through simulating transaction;
if the simulated transaction is successful, the mapping relation is verified successfully; and if the simulated transaction fails, the mapping relation check fails, and the transaction area code having the mapping relation with the navigation area code is regenerated.
Optionally, the method further includes: and storing the generated mapping relation between the navigation area code and the transaction area code into a mapping relation table.
Optionally, the method further includes: and when the update of the trading area code library is monitored, regenerating the mapping relation between the navigation area code and the updated trading area code.
In a second aspect, an embodiment of the present application provides an apparatus for generating a region code mapping relationship, where the apparatus includes:
the device comprises a setting unit, a processing unit and a display unit, wherein the setting unit is used for acquiring a navigation area code from a navigation system according to a simulation position and determining position information in the navigation area code;
the inquiring unit is used for inquiring the trading area code corresponding to the position information from the trading area code library according to the position information;
the generating unit is used for generating a mapping relation between the navigation area code and the transaction area code corresponding to the position information if the transaction area code corresponding to the position information exists;
the simulation unit is used for selecting the trading area codes one by one from the trading area code library to carry out simulated trading until the simulated trading is successful if the trading area codes corresponding to the position information do not exist;
the generating unit is also used for generating the mapping relation between the navigation area code and the transaction area code used when the simulated transaction is successful.
Optionally, the apparatus further comprises:
the verification unit is used for acquiring the mapping relation between the navigation area code and the transaction area code and verifying the mapping relation through simulating transaction; if the simulated transaction is successful, the mapping relation is verified successfully; and if the simulated transaction fails, the mapping relation check fails, and the transaction area code having the mapping relation with the navigation area code is regenerated.
Optionally, the apparatus further comprises:
and the updating unit is used for regenerating the mapping relation between the navigation area code and the updated trading area code when the condition that the trading area code library is updated is monitored.
Compared with the prior art, the method has the following beneficial effects:
in the method provided by the embodiment of the application, the position information in the navigation area code of the position is simulated, the transaction area code corresponding to the position information is inquired in a transaction area code library, and if the transaction area code exists, the mapping relation between the navigation area code and the transaction area code corresponding to the position information is generated; if not, selecting trading area codes one by one from the trading area code library to carry out simulated trading, and generating a mapping relation between the navigation area codes and the trading area codes used when the simulated trading is successful. Therefore, the mapping relation between the navigation area code and the transaction area code can be generated by inquiring in the transaction area code library and simulating the transaction, the test can be directly carried out according to the generated mapping relation, the correctness of the mapping relation between the navigation area code generated by each simulation and the transaction area code of the Unionpay does not need to be verified by the Unionpay system, the test process is simplified, and the test efficiency is improved.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments described in the present application, and other drawings can be obtained by those skilled in the art without creative efforts.
Fig. 1 is a flowchart of a method for generating a region code mapping relationship according to an embodiment of the present application;
fig. 2 is a flowchart of another method for generating a mapping relationship of a region code according to an embodiment of the present disclosure;
fig. 3 is a schematic structural diagram of a device for generating a region code mapping relationship according to an embodiment of the present application.
Detailed Description
As described above, since the bank needs the cross-bank transaction system through the bank when the cross-bank transaction is performed, the bank verifies the transaction area in order to ensure the security of the transaction, and the verification transaction area is verified through the cross-bank service area code provided by the commercial bank of the transaction. When the Unionpay verification is correct, the transaction is safe, and the transaction result is successful; when the Unionpay verification fails, the transaction is risky, the transaction result is a wind control error, and the transaction is unsuccessful.
The inventor finds that if the transaction of the cross-bank service is realized in the mobile phone bank, the mobile phone bank acquires the international area code through the global positioning system. The international area code is not consistent with the set standard of the Unionpay cross-bank service area code. When the related functions of the mobile phone bank are tested, whether the international area code acquired by the mobile phone bank is matched with the bank union system or not needs to be verified through connection with the bank union system, and if the international area code is not corresponding to the bank union system cross-bank service area code, even if the transaction is correct and no risk exists, the bank union system can carry out risk control error reporting according to the provided incorrect bank union system cross-bank service area code. Therefore, testing of transaction functions can only be performed if the two match correctly. The international area code of the mobile banking bank needs to be verified in mapping relation with the bank interline business area code during each test, so that the test process is long and the test is inconvenient.
The inventor finds that the navigation area code can be acquired from the navigation system by generating the simulation position, and because the transaction area code library has the transaction area code corresponding to the position information, the transaction area code library can be inquired according to the position information in the navigation area code, when the corresponding transaction area code is not inquired, the transaction area codes are selected from the transaction area code library one by one, and the simulation transaction verification is carried out until the corresponding transaction area code is acquired. Therefore, the mapping relation between the navigation area code and the transaction area code can be obtained, the mapping relation can be directly used during testing, and the problem that the testing process is inconvenient due to the fact that verification is carried out through the Unionpay system during testing in the prior art is solved.
In order to make the technical solutions of the present application better understood, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments in the present application without making any creative effort belong to the protection scope of the present application.
First embodiment
Referring to fig. 1, this figure is a flowchart of a method for generating a region code mapping relationship according to an embodiment of the present application.
In the embodiment of the present application, the method may be implemented by the following steps S101 to S104, for example.
S101: and acquiring a navigation area code from a navigation system according to the simulated position, and determining the position information in the navigation area code.
It should be noted that the simulation position in the embodiment of the present application may be a simulation position set according to a test requirement, and the specific representation form of the simulation position is not limited in the embodiment of the present application, and in a possible implementation manner, the simulation position may be determined for a specific longitude and latitude.
It is understood that the navigation system in the embodiment of the present application may be a global positioning system or other systems capable of implementing a navigation positioning function, and correspondingly, the navigation area code is generated by the simulated position according to a setting rule of the area code in the navigation system.
It should be noted that the location information may be location information related to the simulated location, which is included in the navigation area code, and may be latitude and longitude information, or may be names of countries and cities corresponding to the simulated location.
S102: inquiring a transaction area code corresponding to the position information from a transaction area code library according to the position information; and if the transaction area code corresponding to the position information exists, generating a mapping relation between the navigation area code and the transaction area code corresponding to the position information.
It should be noted that the transaction area code library has a transaction area code, and the transaction area code may have an identifier related to the location information, and the corresponding transaction area code may be queried through the location information. It will be appreciated that the transaction area code repository may be provided by the transaction area code generating organization and may be made available to other related organizations or organizations.
S103: and if the transaction area code corresponding to the position information does not exist, selecting the transaction area codes one by one from the transaction area code library to carry out simulated transaction until the simulated transaction is successful.
It is understood that the transaction area code library may not have the transaction area code corresponding to part of the location information, the location information in the transaction area code library may not be comprehensive, or the transaction area code corresponding to the location information may not be found because part of the location information is special.
It will be appreciated that the mapping between the navigation area code and the transaction area code can be verified by simulating the transaction, and in one possible implementation, the mapping between the navigation area code and the transaction area code is considered to be established when the simulated transaction is successful.
In the embodiment of the application, the mode of selecting the trading area codes one by one is not limited, and the trading area codes can be selected randomly or according to the sequence of the trading area codes in the trading area code library.
It should be noted that the transaction area code library has transaction area codes, and when performing simulated transaction, the transaction area codes need to be provided, and because the mapping relationship between the navigation area codes and the transaction area codes is not clear, the simulated transaction can be performed by selecting the transaction area codes and the navigation area codes in the transaction area code library one by one. It is understood that the navigation area code and the transaction area code should have a unique mapping relationship, and a transaction area code corresponding to the navigation area code can be determined by selecting the transaction area codes one by one.
It will be appreciated that when the simulated transaction fails, the transaction area code may be reselected for the simulated transaction until the simulated transaction succeeds.
S104: and generating a mapping relation between the navigation area code and the transaction area code used when the simulated transaction is successful.
It will be appreciated that the transaction area code used to simulate the success of a transaction is the correct transaction area code to map to the navigation area code.
As can be seen from the above, the method for generating a region code mapping relationship provided in the embodiment of the present application may query the transaction region code corresponding to the position information in the transaction region code library through the position information in the navigation region code of the simulated position, and if the transaction region code corresponding to the position information exists, generate a mapping relationship between the navigation region code and the transaction region code corresponding to the position information; if not, selecting trading area codes one by one from the trading area code library to carry out simulated trading, and generating a mapping relation between the navigation area codes and the trading area codes used when the simulated trading is successful. Therefore, the mapping relation between the navigation area code and the transaction area code can be generated by inquiring in the transaction area code library and simulating the transaction, the test can be directly carried out according to the generated mapping relation, the correctness of the mapping relation between the navigation area code generated by each simulation and the transaction area code of the Unionpay does not need to be verified by the Unionpay system, the test process is simplified, and the test efficiency is improved.
Second embodiment
In the first embodiment, the mapping relationship between the navigation area code and the transaction area code is generated by querying the transaction area code library and performing the simulated transaction, but the generated mapping relationship is not necessarily correct because an error or a problem may occur in the querying process or the process of simulating the transaction.
In view of the foregoing situation, the present application provides another method for generating a mapping relationship of a region code, and fig. 2 is a flowchart of another method for generating a mapping relationship of a region code according to an embodiment of the present application.
This embodiment is explained in detail below, and in this embodiment, the method can be implemented by, for example, the following steps S201 to S206.
S201: acquiring a navigation area code from a navigation system according to the simulation position, and determining a province name corresponding to the simulation position in the navigation area code; and inquiring a transaction area code library corresponding to the province name from a transaction area code library through keyword matching according to the province name.
It should be noted that, when the trade area code library has a trade area code and a province name corresponding to the area, the corresponding trade area code can be searched in the trade area code library through the province name in the navigation area code. A keyword matching query may be made in a transaction area code repository. In the embodiment of the application, the specific query mode is not limited, and the query can be performed according to the provincial names and then according to the city names.
S202: and if the transaction area code corresponding to the position information exists, generating a mapping relation between the navigation area code and the transaction area code corresponding to the position information.
S203: if the transaction area codes corresponding to the position information do not exist, the transaction area codes are selected one by one from the transaction area code library according to a preset selection sequence to carry out simulated transaction until the simulated transaction is successful; and generating a mapping relation between the navigation area code and the transaction area code used when the simulated transaction is successful.
It will be appreciated that when the transaction area code is a Unionpay cross-bank service area code, the simulated transaction is a simulated personal cross-bank transaction.
It should be noted that the preset selection order may be selected one by one according to the arrangement order in the transaction area code library, or the transaction area codes of areas with similar positions may be selected first according to the position information, and may be set according to the test requirement.
S204: and storing the generated mapping relation between the navigation area code and the transaction area code into a mapping relation table.
In this embodiment, the specific composition form of the mapping relationship table is not limited, and in a possible implementation manner, the mapping relationship table may have a navigation area code and a transaction area code corresponding to the navigation area code. The embodiment of the application also does not limit the use mode of the mapping relation table, and the transaction area code having the mapping relation with the navigation area code can be obtained according to the navigation area code.
S205: acquiring a mapping relation between the navigation area code and a transaction area code, and verifying the mapping relation through simulating transaction; if the simulated transaction is successful, the mapping relation is verified successfully; and if the simulated transaction fails, the mapping relation check fails, and the transaction area code having the mapping relation with the navigation area code is regenerated.
It is understood that the generated navigation area code and the transaction area code having a mapping relation therewith are obtained, and the mapping relation is verified by performing simulated transaction. In the embodiment of the present application, the order of the verification steps is not limited, and all the mapping relationships may be obtained after all the required mapping relationships between the navigation area codes and the transaction area codes are generated, or the verification may be performed after the mapping relationship between each navigation area code is generated.
S206: and when the condition that the transaction area code library is updated is monitored, regenerating the mapping relation between the navigation area code and the updated transaction area code.
It can be understood that the transaction area code library can be updated after a certain time, the change condition of the transaction area code library can be monitored, and when the transaction area code library is updated, the mapping relation between the navigation area code and the updated transaction area code is regenerated.
In the embodiment, the correctness of the generated mapping relation is ensured by verifying the generated mapping relation, the mapping relation used in the test process is ensured to be correct, and the test efficiency is improved.
Third embodiment
Fig. 3 is a schematic structural diagram of a device for generating a mapping relationship of area codes according to an embodiment of the present application.
For example, the method may specifically include:
the setting unit 301 may be configured to obtain a navigation area code from a navigation system according to a simulated position, and determine position information included in the navigation area code;
an inquiring unit 302, configured to inquire a trading area code corresponding to the location information from a trading area code library according to the location information;
a generating unit 303, configured to generate a mapping relationship between the navigation area code and the transaction area code corresponding to the location information if the transaction area code corresponding to the location information exists;
the simulation unit 304 may be configured to select the trading area codes one by one from the trading area code library to perform simulated trading until the simulated trading is successful if the trading area codes corresponding to the location information do not exist;
the generating unit 303 may be further configured to generate a mapping relationship between the navigation area code and a transaction area code used when the simulated transaction is successful.
It can be understood that the apparatus may further include a verification unit, and the verification unit may be configured to obtain a mapping relationship between the navigation area code and the transaction area code, and perform verification of the mapping relationship through simulated transaction; if the simulated transaction is successful, the mapping relation is verified successfully; and if the simulated transaction fails, the mapping relation check fails, and the transaction area code having the mapping relation with the navigation area code is regenerated.
It is understood that the apparatus may further include an updating unit, and the updating unit may be configured to regenerate the mapping relationship between the navigation area code and the updated transaction area code when it is monitored that the transaction area code library is updated.
It should be understood that, in this application, "at least one" means one or more, "a plurality" means two or more. "and/or" is used to describe the association relationship of the associated object, indicating that there may be three relationships, for example, "a and/or B" may indicate: only A, only B and both A and B are present, wherein A and B may be singular or plural. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship. "at least one of the following" or similar expressions refer to any combination of these items, including any combination of single item(s) or plural items. For example, at least one (one) of a, b, or c, may represent: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", wherein a, b and c may be single or plural.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, the apparatus embodiments are substantially similar to the method embodiments and therefore are described in a relatively simple manner, and reference may be made to some of the description of the method embodiments for relevant points. The above-described apparatus embodiments are merely illustrative, and the units and modules described as separate components may or may not be physically separate. In addition, some or all of the units and modules may be selected according to actual needs to achieve the purpose of the solution of the embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
The foregoing is directed to embodiments of the present application and it is noted that numerous modifications and adaptations may be made by those skilled in the art without departing from the principles of the present application and are intended to be within the scope of the present application.
Claims (10)
1. A method for generating a region code mapping relationship, the method comprising:
acquiring a navigation area code from a navigation system according to the simulation position, and determining position information in the navigation area code;
inquiring a transaction area code corresponding to the position information from a transaction area code library according to the position information; if the transaction area code corresponding to the position information exists, generating a mapping relation between the navigation area code and the transaction area code corresponding to the position information;
if the transaction area code corresponding to the position information does not exist, the transaction area codes are selected one by one from the transaction area code library to carry out simulated transaction until the simulated transaction is successful;
and generating a mapping relation between the navigation area code and the transaction area code used when the simulated transaction is successful.
2. The method of claim 1, wherein the location information in the navigation area code is a city name corresponding to a simulation location;
according to the position information, inquiring a transaction area code corresponding to the position information from a transaction area code library, which specifically comprises the following steps:
and inquiring a transaction area code library corresponding to the province name from a transaction area code library through keyword matching according to the province name.
3. The method of claim 1, wherein said selecting transaction area codes from said transaction area code library for simulated transactions comprises:
and selecting the trading area codes one by one from the trading area code library according to a preset selection sequence to carry out simulated trading.
4. The method of claim 1, wherein the simulated transaction is a simulated personal cross-bank transaction when the transaction area code is a Unionpay cross-bank service area code.
5. The method of claim 1, further comprising:
acquiring a mapping relation between the navigation area code and the transaction area code, and verifying the mapping relation through simulating transaction;
if the simulated transaction is successful, the mapping relation is verified successfully; and if the simulated transaction fails, the mapping relation check fails, and the transaction area code having the mapping relation with the navigation area code is regenerated.
6. The method of claim 1, further comprising:
and storing the generated mapping relation between the navigation area code and the transaction area code into a mapping relation table.
7. The method of claim 1, further comprising:
and when the condition that the transaction area code library is updated is monitored, regenerating the mapping relation between the navigation area code and the updated transaction area code.
8. An apparatus for generating a region code mapping relationship, the apparatus comprising:
the device comprises a setting unit, a processing unit and a display unit, wherein the setting unit is used for acquiring a navigation area code from a navigation system according to a simulation position and determining position information in the navigation area code;
the inquiring unit is used for inquiring the trading area code corresponding to the position information from the trading area code library according to the position information;
the generating unit is used for generating a mapping relation between the navigation area code and the transaction area code corresponding to the position information if the transaction area code corresponding to the position information exists;
the simulation unit is used for selecting the trading area codes one by one from the trading area code library to carry out simulated trading until the simulated trading is successful if the trading area codes corresponding to the position information do not exist;
the generating unit is also used for generating the mapping relation between the navigation area code and the transaction area code used when the simulated transaction is successful.
9. The apparatus of claim 8, further comprising:
the verification unit is used for acquiring the mapping relation between the navigation area code and the transaction area code and verifying the mapping relation through simulating transaction; if the simulated transaction is successful, the mapping relation is verified successfully; and if the simulated transaction fails, the mapping relation check fails, and the transaction area code having the mapping relation with the navigation area code is regenerated.
10. The apparatus of claim 8, further comprising:
and the updating unit is used for regenerating the mapping relation between the navigation area code and the updated trading area code when the situation that the trading area code library is updated is monitored.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911415710.XA CN111144867B (en) | 2019-12-31 | 2019-12-31 | Method and device for generating region code mapping relation |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911415710.XA CN111144867B (en) | 2019-12-31 | 2019-12-31 | Method and device for generating region code mapping relation |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111144867A CN111144867A (en) | 2020-05-12 |
CN111144867B true CN111144867B (en) | 2023-04-07 |
Family
ID=70522726
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201911415710.XA Active CN111144867B (en) | 2019-12-31 | 2019-12-31 | Method and device for generating region code mapping relation |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111144867B (en) |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102750790A (en) * | 2012-06-27 | 2012-10-24 | 福建联迪商用设备有限公司 | Wireless POS (point of sale) location monitoring method |
CN108886522A (en) * | 2016-03-31 | 2018-11-23 | 维萨国际服务协会 | It is data safety by the associated system and method for diversified position data |
CN110457342A (en) * | 2019-07-02 | 2019-11-15 | 网联清算有限公司 | Transaction processing method and device |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20190310933A1 (en) * | 2018-04-10 | 2019-10-10 | Ca, Inc. | Externalized definition and reuse of mocked transactions |
-
2019
- 2019-12-31 CN CN201911415710.XA patent/CN111144867B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102750790A (en) * | 2012-06-27 | 2012-10-24 | 福建联迪商用设备有限公司 | Wireless POS (point of sale) location monitoring method |
CN108886522A (en) * | 2016-03-31 | 2018-11-23 | 维萨国际服务协会 | It is data safety by the associated system and method for diversified position data |
CN110457342A (en) * | 2019-07-02 | 2019-11-15 | 网联清算有限公司 | Transaction processing method and device |
Also Published As
Publication number | Publication date |
---|---|
CN111144867A (en) | 2020-05-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105260534B (en) | Regression test case maintaining method and system for ultra-large chip checking | |
US20210049715A1 (en) | Blockchain-based data procesing method, apparatus, and electronic device | |
CN110175916B (en) | Fund flow checking method and device | |
CN109582550B (en) | Method, device and server for acquiring full-service scene fault set | |
CN104951933A (en) | Security payment method and mobile terminal | |
CN107220169B (en) | Method and equipment for simulating server to return customized data | |
CN110837470B (en) | Bank card network transaction testing method and device | |
CN111582868A (en) | Transaction request processing method, device and equipment | |
CN107291612B (en) | Test method and device | |
US20150317635A1 (en) | Electronic gesture-based signatures | |
CN110990272A (en) | Mobile payment testing method, device and system | |
CN113656497A (en) | Data verification method and device based on block chain | |
CN111144867B (en) | Method and device for generating region code mapping relation | |
CN112651716A (en) | Data processing method, device and storage medium | |
CN115470139A (en) | Interface testing method and related equipment | |
CN109783450A (en) | A kind of data processing method and device and computer equipment | |
CN114048732A (en) | Multi-terminal information processing method, device, equipment and storage medium | |
CN113051178A (en) | Test data construction method, device, equipment and medium | |
CN106815014A (en) | A kind of information input reminding method and device | |
CN111538664A (en) | System and method for testing payment marking application | |
CN110910091A (en) | Data processing method, device and medium | |
CN104348698B (en) | Message reminding method and device based on instant messaging service | |
CN109815393A (en) | Information processing method, device, computer equipment and readable storage medium storing program for executing | |
CN116402612A (en) | Method and device for simulating service scene | |
CN111786793B (en) | Signature information verification method and device |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |