Specific embodiment
For the application is further described, the following example is provided:
Fig. 1 shows a kind of flow chart of data interactive method according to one exemplary embodiment of the application, such as Fig. 1 institute
Show, this method may comprise steps of:
Step 102, it receives and is requested by each data interaction that internal data interactive object is initiated, each data interaction request
Corresponding interaction data is all made of the first numerical value unit.
In the present embodiment, internal data interactive object can be understood as being in same with the embodiment party of the data interactive method
Inside one data interaction system, then external data interactive object can be understood as being in different data interactions from above-mentioned embodiment party
Internal system.For example, internal data interactive object is the payment system of " Alipay " platform, then above-mentioned embodiment party can be
Another function system in " Alipay " platform, and external data interactive object is then not belonging to " Alipay " platform.
Step 104, request corresponding interaction data by described each data interaction respectively according to optimization numerical value conversion rate
First numerical value Conversion of measurement unit is second value unit, and the data interaction completed with the internal data interactive object operates, with
Obtain the interaction data using second value unit;Wherein, the optimization numerical value conversion rate is by all external data interactive objects
Between the data allocation proportion that is pre-configured and the corresponding individual values conversion ratio of each external data interactive object calculate
It obtains.
In the present embodiment, optimization numerical value conversion rate can be using the data allocation proportion as weight, and to each
The corresponding individual values conversion ratio of external data interactive object is weighted.
Wherein, since the corresponding individual values conversion ratio of different external data interactive objects is different thus excellent by generating
Change numerical value conversion rate, so that available identical optimization numerical value conversion rate is requested in each data interaction, avoids different numbers
When using different individual values conversion ratios according to interaction request, cause these data interactions that corresponding requesting party is requested to be distinguished pair
To;Simultaneously as optimization numerical value conversion rate is calculated based on data allocation proportion, with subsequent external data interactive object
Selection it is interrelated, convenient for the smooth execution of whole flow process.
Step 106, it requests for each data interaction, is selected in all external data interactive objects, and
Assign the interaction data using second value unit to selected external data interactive object as request data, so that
The proportionate relationship that all external data interactive objects add up respectively between the numerical value of the request data received is intended to institute
State data allocation proportion;And obtain the first numerical value unit of use from the selected external data interactive object
Feedback data, wherein the request data is according to the corresponding individual values conversion ratio of the selected external data interactive object
It is equal with the numerical value of the feedback data when being converted to the first numerical value unit.
In the present embodiment, when being selected in all external data interactive objects, it can estimate and be adopted described respectively
When the interaction data of second value unit being used to assign each external data interactive object as request data, the corresponding ratio
Difference between relationship and the data allocation proportion;Then, the corresponding external data interactive object of minimum difference is chosen.
Wherein, by the way that different selection modes are estimated and compared respectively, it can be ensured that final selection result makes
The proportionate relationship that all external data interactive objects add up respectively between the numerical value of the request data received is intended to data point
With ratio, i.e., the total value of the data interaction between internal data interactive object, and between external data interactive object
Data interaction total value, two total values be intended to it is equal (due to exist the numerical value conversion based on different numerical value conversion rates,
Therefore there may be numerical value differences).
Specifically, when estimating difference, can estimate respectively using the interaction data using second value unit as
When request data assigns each external data interactive object, the corresponding proportionate relationship;Respectively by each proportionate relationship
Space vector is converted to the data allocation proportion;Calculate separately the corresponding space vector of each proportionate relationship with it is described
Angle value between the corresponding space vector of data allocation proportion;And the corresponding external data of the selection minimum difference is handed over
Mutual object, comprising: choose minimum angle and be worth corresponding external data interactive object.
Below with the concrete application in payment process, the technical solution of the application is described in detail;Certainly, this field
Technical staff should be understood that the technical solution of the application is expressly intended to apply to any scene for being related to multiparty data and interacting
Under, the application limits not to this.Wherein, Fig. 2 shows according to the application scenarios of the application one exemplary embodiment
Schematic diagram, as shown in Figure 2, it is assumed that the embodiment party of above-mentioned data interactive method is data interaction device, and internal data interaction pair
As for payment system, external data interactive object is foreign exchange provider, to solve the foreign currency exchange being related in payment process
Problem.Specifically, Fig. 3 shows the flow chart of another data interactive method according to one exemplary embodiment of the application, should
Method is applied to data interaction device shown in Fig. 2, may comprise steps of:
Step 302, the payment request that payment system is initiated is received.
In the present embodiment, if the purchase order of user is related to foreign exchange transaction, payment system can be according to the friendship of user
Easy demand initiates payment request to data interaction device.
Such as in primary shopping, user has initiated one 100 dollars of order, but user is merely able to using Russian Lu
Cloth is settled accounts, then by being traded between payment system and user by Russian Ruble, and payment system will obtain
Russian Ruble is exchanged with foreign exchange provider, thus finally by the payment system obtain 100 dollars (due to Exchange Rate,
There may be numerical value differences).
Step 304, available foreign exchange provider is determined.
Step 306, according to the independent exchange rate of each available foreign exchange provider, and the data allocation proportion being pre-configured,
The calculation optimization exchange rate.
In the present embodiment, when there is only a foreign exchange provider, the exchange rate that can be provided according to the foreign exchange provider,
The exchange rate conversion and transaction of transaction amount are completed directly between user, payment system and foreign exchange provider;However, more when existing
When foreign exchange provider of family, since the exchange rate that each foreign exchange provider provides is inconsistent, but it must be provided to all users identical
The exchange rate, thus need the calculation optimization exchange rate.
The calculating process for optimizing the exchange rate, is related to the data allocation proportion negotiated in advance between Duo Jia foreign exchange provider, i.e.,
The allocation proportion of transaction amount.By taking foreign exchange provider A shown in Fig. 2, foreign exchange provider B and foreign exchange provider C as an example, it is assumed that right
The allocation proportion for the transaction amount answered is a:b:c, i.e. payment system is mentioned with foreign exchange provider A, foreign exchange provider B and foreign exchange respectively
Ratio for the quotient C cumulative transaction amount completed is a:b:c, and a+b+c=1.So, if foreign exchange provider A, foreign exchange provide
The exchange rate that quotient B and foreign exchange provider C are provided is respectively FXa, FXb and FXc, then optimize exchange rate FXr can according to the following equation into
Row calculates: FXr=FXa × a+FXb × b+FXc × c.
Similarly, when there are foreign exchange provider of n family, optimization exchange rate FXr can be calculated according to the following equation: FXr
=FX1 × W1+FX2 × W2+FX3 × W3+ ...+FXn × Wn, wherein Wn is the exchange rate that n-th foreign exchange provider provides.
Step 308, delivery operation is completed with payment system.
In the present embodiment, for example, it is assumed that foreign exchange provider A, foreign exchange provider B and foreign exchange provider C were provided
The exchange rate is respectively FXa=48, FXb=50, FXc=52, and a:b:c=20%:50%:30%, then the optimization exchange rate obtained are
FXr=48 × 20%+50 × 50%+52 × 30%=50.2.So, all use per family can be using optimization exchange rate FXr=
Transaction is completed between 50.2, with transaction system, it is ensured that the uniformity of transaction.
For example be 100 dollars of trade order for the amount of money in above-described embodiment, final transaction amount is 100 ×
50.2=5020 Russian Ruble.
Step 310, it estimates when distributing current payment amount to each foreign exchange provider, each foreign exchange provider is corresponding
Cumulative transaction amount.
In the present embodiment, after completing transaction based on the optimization exchange rate and user, payment system needs the trade gold that will be obtained
Volume branches to some foreign exchange provider, to obtain the foreign exchange of required unit;For example it by 5020 above-mentioned Russian Ruble, converts again
It is changed to dollar.However, since the exchange rate that the optimization exchange rate is provided with each foreign exchange provider is all different, then if provided with foreign exchange
Quotient A or foreign exchange provider B is exchanged, and due to FXa < FXr, FXb < FXr, be will lead to payment system and is lost, if with outer
The provider C that converges is exchanged, and due to FXc > FXr, be will lead to payment system and is got a profit.
However, payment system can not be converted always with foreign exchange provider C based on the data allocation proportion negotiated in advance
It changes, so that after transaction amount is branched to some foreign exchange provider every time by payment system, it is possible to there is loss, it is also possible to deposit
It is getting a profit, and the allocation result of transaction amount must be made to meet data allocation proportion.Therefore, for each transaction amount of money,
It is required to through the reasonable selection to foreign exchange provider, it is ensured that payment system is finally intended to break even, and each foreign exchange provides
The shunting amount of money that quotient receives meets data allocation proportion.
As an exemplary embodiment, the application provides foreign exchange provider as shown in Figure 4 (i.e. external data interaction pair
As) selection mode.Specifically, it is assumed that there are foreign exchange providers of n family, establish corresponding n-dimensional space coordinate system, then data distribution ratio
There are corresponding vector F=[a, b, c ... ...] in the n-dimensional space coordinate system for example, and wherein a is the corresponding number of foreign exchange provider A
According to allocation proportion value;Meanwhile data interaction system the transaction amount of the allocated to each foreign exchange provider can be carried out it is tired
Meter, and vector T=[Ta, Tb, the Tc ... ...] that corresponding accumulating sum is constituted is obtained, wherein Ta is that foreign exchange provider A is corresponding
The meaning of accumulating sum, other parameters is similar.
So, it is assumed that the transaction amount currently formed is Ti, then it may be assumed that when being distributed to each foreign exchange provider,
The variation of above-mentioned vector T.Wherein, if distributing Ti to foreign exchange provider A, vector T variation is [Ta+Ti, Tb, Tc ... ...];
If distributing Ti to foreign exchange provider B, vector T variation is [Ta, Tb+Ti, Tc ... ...], and so on.
Then, vector T (such as above-mentioned [Ta+Ti, Tb, Tc ... ...], [Ta, Tb+ after each variation estimated is calculated separately
Ti, Tc ... ...] etc.) and vector F between angle α show then when the angle α is bigger and the deviation of data allocation proportion got over
Greatly, on the contrary then smaller.
Therefore, by all being chosen each time so that angle α is the smallest to estimate situation, and certainly chooses corresponding foreign exchange and mention
For quotient, to distribute the transaction amount currently formed, then being distributed by more and more multiple transaction amount, that is, can ensure that final
Transaction amount allocation result is increasingly intended to data allocation proportion, reaches ideal allocation situation.
Step 312, the foreign exchange provider for being applied to current payment request is chosen.
Step 314, the corresponding transaction amount of current payment request is distributed to the foreign exchange provider of selection.
Step 316, the exchange of the shunting amount of money is completed with the foreign exchange provider of selection.
Fig. 5 shows the schematic configuration diagram of the electronic equipment of the exemplary embodiment according to the application.Referring to FIG. 5,
In hardware view, which includes processor, internal bus, network interface, memory and nonvolatile memory, certainly
It is also possible that hardware required for other business.Processor read from nonvolatile memory corresponding computer program to
It is then run in memory, forms data interaction device on logic level.Certainly, other than software realization mode, the application
Other implementations, such as logical device or the mode of software and hardware combining etc. is not precluded, that is to say, that following processing stream
The executing subject of journey is not limited to each logic unit, is also possible to hardware or logical device.
Referring to FIG. 6, the data interaction device may include request reception unit, internal friendship in Software Implementation
Mutual unit and external interactive unit.Wherein:
Request reception unit is received and is requested by each data interaction that internal data interactive object is initiated, and each data are handed over
Corresponding interaction data is mutually requested to be all made of the first numerical value unit;
Internal interactive unit, according to optimization numerical value conversion rate respectively by each data interaction request corresponding interaction data by
The first numerical value Conversion of measurement unit is second value unit, and the data interaction completed with the internal data interactive object is grasped
Make, to obtain the interaction data using second value unit;Wherein, the optimization numerical value conversion rate is interacted by all external datas
The data allocation proportion and the corresponding individual values conversion ratio of each external data interactive object being pre-configured between object
It is calculated;
External interactive unit is requested for each data interaction, is selected in all external data interactive objects
It selects, and assigns the interaction data using second value unit to selected external data interaction pair as request data
As so that the proportionate relationship that all external data interactive objects add up respectively between the numerical value of the request data received becomes
To in the data allocation proportion;And obtain the first numerical value of use from the selected external data interactive object
The feedback data of unit, wherein the request data is according to the selected corresponding individual values of external data interactive object
It is equal with the numerical value of the feedback data when conversion ratio is converted to the first numerical value unit.
Optionally, the optimization numerical value conversion rate is using the data allocation proportion as weight, and to each external number
It is weighted according to the corresponding individual values conversion ratio of interactive object.
Optionally, the external interactive unit is specifically used for:
It estimates respectively and assigns each external data for the interaction data using second value unit as request data
Difference when interactive object, between the corresponding proportionate relationship and the data allocation proportion;
Choose the corresponding external data interactive object of minimum difference.
Optionally, the external interactive unit is specifically used for:
It estimates respectively and assigns each external data for the interaction data using second value unit as request data
When interactive object, the corresponding proportionate relationship;
Each proportionate relationship and the data allocation proportion are converted into space vector respectively;
Calculate separately the corresponding space vector of each proportionate relationship space corresponding with the data allocation proportion to
Angle value between amount;And
The corresponding external data interactive object of the selection minimum difference, comprising: choose minimum angle and be worth corresponding outside
Data interaction object.
Optionally, the internal data interactive object is payment system, and data interaction request is payment request;With
And the external data interactive object is foreign exchange provider, and the individual values conversion ratio is the exchange rate.
In a typical configuration, calculating equipment includes one or more processors (CPU), input/output interface, net
Network interface and memory.
Memory may include the non-volatile memory in computer-readable medium, random access memory (RAM) and/or
The forms such as Nonvolatile memory, such as read-only memory (ROM) or flash memory (flash RAM).Memory is computer-readable medium
Example.
Computer-readable medium includes permanent and non-permanent, removable and non-removable media can be by any method
Or technology come realize information store.Information can be computer readable instructions, data structure, the module of program or other data.
The example of the storage medium of computer includes, but are not limited to phase change memory (PRAM), static random access memory (SRAM), moves
State random access memory (DRAM), other kinds of random access memory (RAM), read-only memory (ROM), electric erasable
Programmable read only memory (EEPROM), flash memory or other memory techniques, read-only disc read only memory (CD-ROM) (CD-ROM),
Digital versatile disc (DVD) or other optical storage, magnetic cassettes, tape magnetic disk storage or other magnetic storage devices
Or any other non-transmission medium, can be used for storage can be accessed by a computing device information.As defined in this article, it calculates
Machine readable medium does not include temporary computer readable media (transitory media), such as the data-signal and carrier wave of modulation.
It should also be noted that, the terms "include", "comprise" or its any other variant are intended to nonexcludability
It include so that the process, method, commodity or the equipment that include a series of elements not only include those elements, but also to wrap
Include other elements that are not explicitly listed, or further include for this process, method, commodity or equipment intrinsic want
Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including described want
There is also other identical elements in the process, method of element, commodity or equipment.
The foregoing is merely the preferred embodiments of the application, not to limit the application, all essences in the application
Within mind and principle, any modification, equivalent substitution, improvement and etc. done be should be included within the scope of the application protection.