CN115760234B - Third party rights exchange method and device, electronic equipment and readable storage medium - Google Patents

Third party rights exchange method and device, electronic equipment and readable storage medium Download PDF

Info

Publication number
CN115760234B
CN115760234B CN202211493045.8A CN202211493045A CN115760234B CN 115760234 B CN115760234 B CN 115760234B CN 202211493045 A CN202211493045 A CN 202211493045A CN 115760234 B CN115760234 B CN 115760234B
Authority
CN
China
Prior art keywords
rights
exchange
request
application program
equity
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
Application number
CN202211493045.8A
Other languages
Chinese (zh)
Other versions
CN115760234A (en
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.)
Zhongdian Jinxin Software Co Ltd
Original Assignee
Zhongdian Jinxin Software 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 Zhongdian Jinxin Software Co Ltd filed Critical Zhongdian Jinxin Software Co Ltd
Priority to CN202211493045.8A priority Critical patent/CN115760234B/en
Publication of CN115760234A publication Critical patent/CN115760234A/en
Application granted granted Critical
Publication of CN115760234B publication Critical patent/CN115760234B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The application provides a third party equity exchange method, a third party equity exchange device, electronic equipment and a readable storage medium, wherein a target application program interface used when equity exchange is determined in response to equity exchange requests; determining platform attribute information of a third party platform to which the rights to be redeemed belong based on the rights attribute information of the rights to be redeemed; determining a rights and interests exchange interface of the third party platform by searching a stored third party dictionary based on platform attribute information; and calling the rights and interests exchange interface by using the target application program interface, finishing the exchange of the rights and interests to be exchanged, and recording the exchange information of the rights and interests to be exchanged. Therefore, when the user has the rights exchange requirement, the service platform can realize the call of the rights exchange interface of the third party platform by using the gateway, different docking interfaces are not required to be developed for different third party platforms, and the development difficulty and maintenance difficulty of the service platform are reduced.

Description

Third party rights exchange method and device, electronic equipment and readable storage medium
Technical Field
The present application relates to the field of data processing technologies, and in particular, to a third party benefit exchange method, apparatus, electronic device, and readable storage medium.
Background
With popularization of internet technology, different platforms cooperate with each other on business in order to promote development of respective business; for example, the bank platform can select to cooperate with the third party platform to issue the product of the third party platform to the customer as the bonus equity, and the customer can exchange the corresponding product in the third party platform, thereby realizing the exchange of the bonus equity.
Here, the banking platform can select to cooperate with a plurality of third party platforms, and in view of the difference of interaction information existing between the banking platform and each third party platform, the docking interfaces used when the banking platform and the different third party platforms interact with each other are also different, so that in the case that a plurality of third party platforms exist, the banking platform needs to formulate different docking interfaces for each third party platform; or guiding the client to exchange the related rights and interests in a third party platform; the client benefit exchange process is complicated, and a large number of docking interfaces are configured, so that development difficulty is increased, and management difficulty of the docking interfaces is also increased.
Disclosure of Invention
In view of the above, the present application aims to provide a third party equity exchange method, apparatus, electronic device, and readable storage medium, where when a user has equity exchange requirements, a service platform can implement invocation of equity exchange interfaces of a third party platform by using a gateway, and development of different docking interfaces for different third party platforms is not required, so that development difficulty and maintenance difficulty of the service platform are reduced.
The embodiment of the application provides a third party rights exchange method which is applied to a gateway of a service platform; the exchange method comprises the following steps:
in response to the equity redemption request, determining a target application program interface used when redeeming equity to be redeemed;
determining platform attribute information of a third party platform to which the rights to be redeemed belong based on the rights attribute information of the rights to be redeemed;
determining a rights exchange interface of the third party platform by searching a stored third party dictionary based on the platform attribute information;
and calling the equity exchange interface by utilizing the target application program interface to finish the exchange of the equity to be exchanged, and recording the exchange information of the equity to be exchanged.
In one possible implementation manner, after the exchange of the rights to be exchanged is completed, the exchange method further includes:
based on the platform attribute information, determining a rights and benefits verification interface of the third party platform by searching a stored third party dictionary;
and calling the equity verifying and verifying interface by using the target application program interface, finishing verifying and verifying the equity to be converted, and recording verifying and verifying information of the equity to be converted.
In one possible embodiment, the redemption method further includes:
and according to the verification information, adjusting the exchange state of the rights to be exchanged in the stored rights exchange list.
In one possible embodiment, the redemption method further includes:
responding to the triggering of the reconciliation event, and generating a equity reconciliation result based on the exchange information and the verification information;
and responding to the reconciliation request of the third party platform, and feeding back the equity reconciliation result to the third party platform.
In one possible implementation, the gateway includes a plurality of candidate application program interfaces; the determining, in response to the rights exchange request, a target application program interface used when exchanging the rights to be exchanged, including:
responding to a rights exchange request, checking the rights exchange request based on request parameters carried by the rights exchange request, and determining whether the rights exchange request has a security problem or not;
if not, determining a target application program interface used for exchanging the rights to be exchanged from the candidate application program interfaces based on the interface information of each candidate application program interface.
In one possible implementation manner, the checking the rights exchange request based on the request parameters carried by the rights exchange request, and determining whether the rights exchange request has a security problem includes:
determining whether the equity redemption request is repeatedly submitted within a preset time period based on the request parameters;
if not, determining whether the request signature in the request parameters is consistent with a preset signature;
if the request parameters are consistent, carrying out authority verification on the rights exchange request based on the authority parameters in the request parameters, and determining whether the rights exchange request has the request authority;
and if the request authority is provided, determining that the rights exchange request has no security problem.
In one possible implementation manner, the determining, based on the interface information of each candidate application program interface, a target application program interface used for exchanging the rights to be exchanged from the candidate application program interfaces includes:
determining the running load of each candidate application program interface based on the interface information of each candidate application program interface;
and determining the candidate application program interface with the minimum operation load as a target application program interface, distributing a request route for the target application program interface, and limiting the operation flow of the target application program interface.
The embodiment of the application also provides a third party rights exchange device which is applied to the gateway of the service platform; the redemption device includes:
the first interface determining module is used for responding to the rights and interests exchange request and determining a target application program interface used when the rights and interests to be exchanged are exchanged;
the information determining module is used for determining platform attribute information of a third party platform to which the rights to be converted belong based on the rights attribute information of the rights to be converted;
the second interface determining module is used for determining a benefit exchange interface of the third party platform by searching a stored third party dictionary based on the platform attribute information;
and the equity exchange module is used for calling the equity exchange interface by utilizing the target application program interface, finishing the exchange of the equity to be exchanged and recording the exchange information of the equity to be exchanged.
In one embodiment, after the exchange of the rights to be exchanged is completed, the exchange device further includes a rights verification module for:
based on the platform attribute information, determining a rights and benefits verification interface of the third party platform by searching a stored third party dictionary;
And calling the equity verifying and verifying interface by using the target application program interface, finishing verifying and verifying the equity to be converted, and recording verifying and verifying information of the equity to be converted.
In one embodiment, the redemption device further includes a status adjustment module for:
and according to the verification information, adjusting the exchange state of the rights to be exchanged in the stored rights exchange list.
In one embodiment, the redemption apparatus further includes a reconciliation module for:
responding to the triggering of the reconciliation event, and generating a equity reconciliation result based on the exchange information and the verification information;
and responding to the reconciliation request of the third party platform, and feeding back the equity reconciliation result to the third party platform.
In one possible implementation, the gateway includes a plurality of candidate application program interfaces; the first interface determining module is used for determining a target application program interface used when exchanging the rights to be exchanged in response to a rights exchanging request, and the first interface determining module is used for:
responding to a rights exchange request, checking the rights exchange request based on request parameters carried by the rights exchange request, and determining whether the rights exchange request has a security problem or not;
If not, determining a target application program interface used for exchanging the rights to be exchanged from the candidate application program interfaces based on the interface information of each candidate application program interface.
In one possible implementation manner, the first interface determining module is configured to, when checking the benefit exchange request based on a request parameter carried by the benefit exchange request to determine whether the benefit exchange request has a security problem,:
determining whether the equity redemption request is repeatedly submitted within a preset time period based on the request parameters;
if not, determining whether the request signature in the request parameters is consistent with a preset signature;
if the request parameters are consistent, carrying out authority verification on the rights exchange request based on the authority parameters in the request parameters, and determining whether the rights exchange request has the request authority;
and if the request authority is provided, determining that the rights exchange request has no security problem.
In one possible implementation manner, the first interface determining module is configured to, when determining, based on the interface information of each candidate application program interface, a target application program interface used for redeeming the rights to be redeemed from the plurality of candidate application program interfaces:
Determining the running load of each candidate application program interface based on the interface information of each candidate application program interface;
and determining the candidate application program interface with the minimum operation load as a target application program interface, distributing a request route for the target application program interface, and limiting the operation flow of the target application program interface.
The embodiment of the application also provides electronic equipment, which comprises: the electronic device comprises a processor, a memory and a bus, wherein the memory stores machine-readable instructions executable by the processor, the processor and the memory are communicated through the bus when the electronic device is running, and the machine-readable instructions are executed by the processor to perform the steps of the third party benefit exchange method.
Embodiments of the present application also provide a computer readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of a redemption method for a third party benefit as described above.
The third party equity exchange method, the third party equity exchange device, the electronic equipment and the readable storage medium provided by the embodiment of the application respond to equity exchange requests and determine target application program interfaces used when exchanging equity to be exchanged; determining platform attribute information of a third party platform to which the rights to be redeemed belong based on the rights attribute information of the rights to be redeemed; determining a rights exchange interface of the third party platform by searching a stored third party dictionary based on the platform attribute information; and calling the equity exchange interface by utilizing the target application program interface to finish the exchange of the equity to be exchanged, and recording the exchange information of the equity to be exchanged. Therefore, when the user has the rights exchange requirement, the service platform can realize the call of the rights exchange interface of the third party platform by using the gateway, and different docking interfaces are not required to be developed for different third party platforms, so that the development difficulty and maintenance difficulty of the service platform are reduced; meanwhile, the user can finish the exchange of the rights and interests to be exchanged in the service platform, and the exchange flow of the rights and interests to be exchanged is simplified.
In order to make the above objects, features and advantages of the present application more comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the embodiments will be briefly described below, it being understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and other related drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flowchart of a third party benefit redemption method provided by an embodiment of the present application;
FIG. 2 is a schematic diagram of a process for verifying rights and interests according to an embodiment of the present application;
fig. 3 is a schematic diagram of a process for exchanging rights and interests to be exchanged according to an embodiment of the present application;
FIG. 4 is a schematic structural diagram of a third party benefit exchange device according to an embodiment of the present application;
FIG. 5 is a second schematic diagram of a third party benefit exchange device according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present application more apparent, the technical solutions of the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application, and it is apparent that the described embodiments are only some embodiments of the present application, not all embodiments. The components of the embodiments of the present application generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the application, as presented in the figures, is not intended to limit the scope of the application, as claimed, but is merely representative of selected embodiments of the application. Based on the embodiments of the present application, every other embodiment obtained by a person skilled in the art without making any inventive effort falls within the scope of protection of the present application.
According to research, the bank platform can select to cooperate with a plurality of third party platforms, and in view of the difference of interaction information between the bank platform and each third party platform, the butt joint interfaces used when the bank platform and different third party platforms interact information are different, so that the bank platform needs to formulate different butt joint interfaces for each third party platform under the condition that a plurality of third party platforms exist; or guiding the client to exchange the related rights and interests in a third party platform; the client benefit exchange process is complicated, and a large number of docking interfaces are configured, so that development difficulty is increased, and management difficulty of the docking interfaces is also increased.
Based on the above, the embodiment of the application provides a third party rights exchange method, which can realize the invocation of rights exchange interfaces of different third party platforms through the gateway, thereby reducing the configuration process of the docking interfaces in the service platform and reducing the development difficulty and the management difficulty of the docking interfaces.
In a specific implementation, the method for exchanging the third party rights provided by the embodiment of the application can be executed based on the terminal equipment, and the terminal equipment can be local electronic equipment which is downloaded and can run the exchange program, such as a smart phone, a personal computer, a tablet computer and the like. The terminal equipment (e.g. local electronic equipment) can interact with the user through the exchange interface, receives the equity exchange request triggered by the user through the exchange interface, and invokes the equity exchange interface of the third-party platform by utilizing the target application program interface at the gateway to finish the exchange of equity to be exchanged.
In addition, when the third party benefit exchange method provided by the embodiment of the application is applied to the server, the third party benefit exchange method can be realized and executed based on a cloud interaction system, wherein the cloud interaction system can comprise the server and the client device. In an alternative embodiment, a plurality of cloud applications may be run in a server under the cloud interaction system, for example: a redemption means for a plurality of third party interests. In the operation mode, the operation main body of the exchange program and the presentation main body of the exchange interface related to the exchange method of the third party rights are separated, the storage and operation of the exchange method of the third party rights are completed on a server, and the client device is used for presenting the exchange interface, for example, the client device can be a display device with a data transmission function close to a user side. When the rights to be exchanged are exchanged, the method is used for operating the client device, sending a rights exchange request to the server, receiving the rights exchange request triggered by the user through the exchange interface according to the received rights exchange request, and calling the rights exchange interface of the third party platform by utilizing the target application program interface at the gateway to finish the exchange of the rights to be exchanged.
It should be noted that, when the exchange process of the third party rights and interests involves a plurality of exchange devices, the plurality of exchange devices may be respectively disposed in different servers, or may be integrally disposed in the same server; when a plurality of users participate in the exchange process of the third party rights and interests, the users can respectively use different client devices, and can also use the same client device and switch roles in a software mode.
Referring to fig. 1, fig. 1 is a flowchart of a third party benefit exchange method according to an embodiment of the present application. Gateway applied to service platform; as shown in fig. 1, the third party benefit exchange method provided by the embodiment of the application includes:
s101, responding to the rights exchange request, and determining a target application program interface used when exchanging the rights to be exchanged.
S102, determining platform attribute information of a third party platform to which the rights to be redeemed belong based on the rights attribute information of the rights to be redeemed.
And S103, based on the platform attribute information, determining a rights and interests exchange interface of the third party platform by searching a stored third party dictionary.
S104, calling the equity exchange interface by utilizing the target application program interface, finishing the exchange of the equity to be exchanged, and recording the exchange information of the equity to be exchanged.
According to the third party equity exchange method provided by the embodiment of the application, when a user has equity exchange requirements, a gateway of a service platform responds to equity exchange requests to determine a target application program interface (API interface) used when exchanging equity to be exchanged in the gateway; meanwhile, based on the rights attribute information carried by the rights exchange request, determining platform attribute information of a third party platform to which the rights to be exchanged belong; determining a rights exchange interface of the third party platform by using the platform attribute information of the third party platform; calling a rights exchange interface by using a target application program interface so that a user can finish the exchange of rights to be exchanged in a third party platform and an exchange record of the rights to be exchanged is generated; therefore, when the user has the benefit exchange requirement, the service platform can realize the call of the benefit exchange interface of the third party platform through the target application program interface in the gateway, and a corresponding docking interface is not required to be formulated for the third party platform, so that the configuration process of the docking interface in the service platform is reduced, and the development difficulty and the management difficulty of the docking interface are reduced; meanwhile, the user can finish the exchange of the rights and interests to be exchanged in the service platform without carrying out related operations in the third-party platform, so that the exchange process of the rights and interests to be exchanged is simplified, and the rights and interests exchange efficiency is improved.
In step S101, when a user has a request for exchanging rights and interests, a request for exchanging rights and interests may be triggered and generated in the service platform; at this time, the gateway set in the service platform may determine, in response to the equity exchange request initiated by the user through the service platform, the target application program interface (API interface) required to be invoked to complete the exchange of the equity to be exchanged.
Here, the user may initiate the equity redemption request through the terminal device used; specifically, when a user can touch a control corresponding to the rights and interests exchange request, the rights and interests exchange request can be initiated; specifically, the user can exchange the corresponding control of request through touching the rights and interests such as finger, mouse, etc.; or the control corresponding to the request for exchanging the rights and interests is touched by a preset combination key in the keyboard, for example, the ctrl key, alt key, a key and other keys in the keyboard, and the preset key can be set manually according to the requirement of a user;
or when the user opens a specific webpage, the request for exchanging the interests can be automatically initiated; for example, the enterprise sets a rights and interests exchange webpage a for the user, and when the user opens the rights and interests exchange webpage a, a rights and interests exchange request can be initiated.
In the actual use process, the triggering mode of the equity exchange request can be determined according to the actual situation, and the method is not limited.
In general, in order to enable multiple users to complete equity exchange on line at the same time, and avoid the problem of exchange delay when the exchange users are too many, a gateway of a service platform is provided with a plurality of candidate application program interfaces which can be used for equity exchange; in order to complete equity exchange as soon as possible, before equity exchange is performed for the user, a target application program interface suitable for exchanging equity to be exchanged at the current moment can be selected in combination with the actual situation of each candidate application program interface set in the gateway.
In one embodiment, the gateway includes a plurality of candidate application program interfaces; the step S101 includes:
and 11, responding to the equity exchange request, checking the equity exchange request based on request parameters carried by the equity exchange request, and determining whether the equity exchange request has a safety problem or not.
Under the condition that the rights to be exchanged requested by the user have safety problems, the rights to be exchanged are forcedly requested to be exchanged to the third party platform, so that the safety of the third party platform is influenced, and the loss of the third party platform is caused; therefore, in order to avoid the loss to the third party platform, before the exchange of the rights to be exchanged is performed, it is required to determine whether the rights to be exchanged requested to be exchanged by the rights exchange request has a security problem.
In the step, in response to a rights and interests exchange request initiated by a user, whether the rights and interests to be exchanged, which are requested to be exchanged by the rights and interests exchange request, have a safety problem needs to be determined, the rights and interests exchange request can be audited according to request parameters carried by the rights and interests exchange request, and the rights and interests exchange request can be audited in aspects of signature verification, repetition prevention verification, authority verification and the like, so that the safety of the rights and interests exchange request is ensured.
In one embodiment, step 11 includes:
and a step a of determining whether the equity exchange request is repeatedly submitted within a preset time period based on the request parameters.
In this step, in order to prevent the user from repeatedly providing the equity exchange request for the same equity to be exchanged in a short time through the service platform, it is required to determine whether the equity exchange request for exchanging equity to be exchanged is repeatedly provided within a preset time period according to the request parameters carried by the equity exchange request.
Here, the request parameters can be utilized to determine whether other exchange requests carrying the same request parameters exist in a preset time period by searching the exchange records of the exchanged exchange rights; the request parameters at least comprise names of rights to be redeemed, redemption numbers, platform information of a third party platform to which the request parameters belong and redemption events; the platform information of the third party platform at least comprises a third party platform name, a third party platform number and third party platform registration information.
And b, if not, determining whether the request signature in the request parameters is consistent with a preset signature.
In the step, if the request of the equity exchange request is not repeatedly proposed, the equity exchange request can be further subjected to security verification to determine whether the equity exchange request can affect the security of the third party platform; specifically, whether the security problem exists in the rights exchange request can be determined by determining whether the request signature carried in the request parameter is consistent with a preset signature.
And c, if the request parameters are consistent, carrying out authority verification on the rights exchange request based on the authority parameters in the request parameters, and determining whether the rights exchange request has the request authority.
In this step, if the request signature carried in the request parameter is consistent with the preset signature, it can further verify whether the request authority of the equity exchange request is normal, and determine whether the equity exchange request has the request authority of requesting to exchange the equity to be exchanged, so as to ensure the security of the invoked target application program interface.
Step d, if the request authority is provided, determining that the rights exchange request has no security problem; otherwise, determining that the rights exchange request has a security problem.
In the step, if the rights exchange request has the request authority for requesting to exchange the rights to be exchanged, it can be determined that the currently proposed rights exchange request has no security problem; otherwise, the currently proposed equity exchange request has a safety problem and the equity to be exchanged cannot be exchanged.
And step 12, if not, determining a target application program interface used for exchanging the rights to be exchanged from the plurality of candidate application program interfaces based on the interface information of each candidate application program interface.
In the step, if the rights and interests exchange request does not have a safety problem, a target application program interface required to be called for realizing the exchange of the rights and interests to be exchanged can be further determined; specifically, the interface information of each candidate application program interface can be combined, and the target application program interface which is most suitable for realizing the exchange of the rights and interests to be exchanged at the moment can be determined from the plurality of candidate application program interfaces arranged in the gateway, so that the exchange of the rights and interests to be exchanged can be realized by calling the target application program interface in the subsequent process.
Here, the multiple candidate application program interfaces set on the gateway side can exchange the rights and interests to be exchanged at the same time, but each candidate application program interface is limited by the operation load, and the exchange delay occurs in the day under the condition that the operation load is overloaded, so in order to complete the exchange of the rights and interests to be exchanged as soon as possible, the operation load of each candidate application program interface needs to be combined to determine the target application program interface to be invoked for carrying out the exchange of the rights and interests to be exchanged.
In one embodiment, step 12 includes:
and e, determining the operation load of each candidate application program interface based on the interface information of each candidate application program interface.
And f, determining the candidate application program interface with the minimum running load as a target application program interface, distributing a request route for the target application program interface, and limiting the running flow of the target application program interface.
In the step, the operation load of each candidate application program interface is determined by analyzing the interface information of each candidate application program interface; in order to ensure timely completion of the exchange of the rights to be exchanged, a candidate application program interface with the smallest running load is selected from the candidate application program interfaces and used as a target application program interface used when the rights to be exchanged are exchanged, and the running load of each candidate application program interface arranged in the gateway can reach load balance while ensuring the timeliness of the exchange of the rights to be exchanged.
Meanwhile, a request route is distributed for the target application program interface, and in the process that the target application program interface requests to exchange the rights to be exchanged through the request route, the running flow of the target application program interface is limited, so that the normal running of each application program interface is ensured.
In step S102, determining platform attribute information of a third party platform to which the rights to be exchanged belong according to the rights attribute information of the rights to be exchanged; the rights attribute information comprises information such as abbreviations of rights to be exchanged, full names of the rights to be exchanged, value information of the rights to be exchanged, a platform for providing the rights to be exchanged and the like; the platform attribute information comprises information such as short names of the third party platforms to which the rights to be exchanged belong, full names of the third party platforms to which the rights to be exchanged belong, registration information of the third party platforms to which the rights to be exchanged belong in a gateway of the service platform and the like.
In step S103, the platform attribute information of the third party platform to which the rights to be exchanged belongs is used to determine the rights exchange interface to be invoked when the rights are exchanged in the third party platform through searching the third party dictionary stored in the gateway, so as to complete the exchange of the rights to be exchanged through the rights exchange interface.
Here, registration information of each third party platform with information transmission requirements with the service platform is recorded in the third party dictionary; the registration information can indicate an information transmission interface, such as a rights exchange interface, a rights verification interface, a reconciliation interface, etc., related to the third party platform; basic information of the third party platform, such as short names of the third party platform, full names of the third party platform, and sponsoring periods of the third party platform, can also be indicated.
In step S104, the target application program interface of the gateway may implement the invocation of the rights and interests exchange interface of the third party platform to which the rights and interests to be exchanged belong through the allocated request route, so as to complete the exchange of the rights and interests to be exchanged; and after the rights to be exchanged are exchanged, the exchange information of the rights to be exchanged is recorded, so that a support basis is provided for a later account checking process.
After the exchange of the rights to be exchanged is completed, in order to avoid the situation that the rights to be exchanged are repeatedly exchanged, verification processing is required to be performed on the rights to be exchanged which are already exchanged.
In one implementation, as shown in fig. 2, fig. 2 is a schematic diagram of a rights and interests verification process according to an embodiment of the present application. As shown in fig. 2, after the exchange of the rights to be exchanged is completed, the exchange method further includes:
step S201, based on the platform attribute information, determining a rights and benefits verification interface of the third party platform by searching a stored third party dictionary.
In the step, the platform attribute information of the third party platform to which the rights to be exchanged belong is utilized, and a rights and interests verifying interface which is required to be called when the rights and interests are verified in the third party platform is determined through searching a third party dictionary stored in the gateway, so that the rights and interests to be exchanged are verified through the rights and interests verifying interface.
And step S202, calling the equity verifying and verifying interface by utilizing the target application program interface, finishing verifying and verifying the equity to be converted, and recording verifying and verifying information of the equity to be converted.
In the step, the target application program interface of the gateway can realize the invocation of the rights and interests verifying and verifying interface of the third party platform to which the rights and interests to be converted belong through the distributed request route, and the verification and verification of the rights and interests to be converted are completed; and after the verification of the rights to be exchanged is completed, recording verification information of the rights to be exchanged so as to provide a support basis for a later accounting process.
Further, the gateway stores a right exchange list capable of exchanging the rights and interests, and after the exchange and verification of the rights and interests to be exchanged are completed, the exchange state of the rights and interests to be exchanged in the rights and interests exchange list stored in the gateway is adjusted so as to avoid repeated exchange of the rights and interests to be exchanged.
In one embodiment, the redemption method further comprises: and according to the verification information, adjusting the exchange state of the rights to be exchanged in the stored rights exchange list.
In the step, after the exchange and verification of the rights and interests to be exchanged are completed, the exchange state of the rights and interests to be exchanged in the rights and interests exchange list stored in the gateway is adjusted according to the generated verification information; for example, the redemption status of the to-be-redeemed equity may be adjusted from "to-be-redeemed" to "redeemed".
Here, in general, the service platform issues the corresponding rights to be redeemed to the user after the user participates in the activity organized by the service platform; after a period of time, in order to observe the effect of the activity and also to count the exchange condition of the exchangeable equity, the service platform ensures that the exchangeable equity does not have loss and can check the exchangeable equity in a checking mode at regular intervals.
In one embodiment, the method for checking the exchange rights further includes:
and step 1, responding to the triggering of the reconciliation event, and generating a equity reconciliation result based on the exchange information and the verification information.
In the step, in response to the triggering of the checking event, the checking of the exchangeable equity is realized according to the exchange information and the verification information recorded in the gateway, after the checking of the exchangeable equity is completed, the equity checking result is generated, and the equity checking result is stored in the gateway.
Here, the triggering of the reconciliation event may refer to automatically triggering the reconciliation time within a predetermined time; the triggering control of the reconciliation event can be realized by a business person through touch control, and the triggering of the reconciliation event can be determined according to actual conditions without limitation.
And 2, responding to the reconciliation request of the third party platform, and feeding back the equity reconciliation result to the third party platform.
In the step, when the third party platform has the account checking requirement, the account checking request of the third party platform is responded, and the equity account checking result stored in the gateway is fed back to the third party platform, so that the third party platform can check the exchange equity according to the equity account checking result.
Here, the business personnel can initiate a reconciliation request in the third party platform through the used terminal equipment; specifically, when the business personnel can touch the control corresponding to the account checking request, the account checking request can be initiated; specifically, the business personnel can check the corresponding control of the request through touching such as the finger, mouse, etc.; or the control corresponding to the account checking request is touched by a preset combination key in the keyboard, for example, the ctrl key, alt key, a key and other keys in the keyboard, and the preset key can be set manually according to the requirement of a user;
or when a business person opens a specific webpage, a reconciliation request can be automatically initiated; for example, the enterprise sets a reconciliation web page B for the business personnel to reconcile, and when the user opens the reconciliation web page B, a reconciliation request is initiated.
Referring to fig. 3, fig. 3 is a schematic diagram of a process for exchanging rights to be exchanged according to an embodiment of the present application. As shown in fig. 3, in step 301, a service platform initiates an activity and binds rights to be redeemed available for participation in the activity; step 302, a user participates in a service platform to initiate an activity; step 303, the service platform sends rights and interests to be exchanged to the user; and 304, accessing a third party platform by the service platform through a gateway to realize equity exchange, equity verification and equity reconciliation of equity to be exchanged.
According to the third party equity exchange method provided by the embodiment of the application, the target application program interface used when exchanging equity to be exchanged is determined in response to equity exchange request; determining platform attribute information of a third party platform to which the rights to be redeemed belong based on the rights attribute information of the rights to be redeemed; determining a rights exchange interface of the third party platform by searching a stored third party dictionary based on the platform attribute information; and calling the equity exchange interface by utilizing the target application program interface to finish the exchange of the equity to be exchanged, and recording the exchange information of the equity to be exchanged. Therefore, when the user has the rights exchange requirement, the service platform can realize the call of the rights exchange interface of the third party platform by using the gateway, and different docking interfaces are not required to be developed for different third party platforms, so that the development difficulty and maintenance difficulty of the service platform are reduced; meanwhile, the user can finish the exchange of the rights and interests to be exchanged in the service platform, and the exchange flow of the rights and interests to be exchanged is simplified.
Referring to fig. 4 and 5, fig. 4 is a schematic structural diagram of a third party benefit exchange device according to an embodiment of the present application, and fig. 5 is a second schematic structural diagram of a third party benefit exchange device according to an embodiment of the present application. As shown in fig. 4, the redemption device 400 includes:
a first interface determining module 410, configured to determine, in response to the rights exchange request, a target application program interface used when exchanging the rights to be exchanged;
the information determining module 420 is configured to determine platform attribute information of a third party platform to which the rights to be redeemed belong based on the rights attribute information of the rights to be redeemed;
a second interface determining module 430, configured to determine a benefit exchange interface of the third party platform by searching a stored third party dictionary based on the platform attribute information;
and the equity exchange module 440 is configured to utilize the target application program interface to invoke the equity exchange interface to complete the exchange of the equity to be exchanged, and record the exchange information of the equity to be exchanged.
Further, as shown in fig. 5, after the exchange of the rights to be exchanged is completed, the exchange apparatus 400 further includes a rights and interests verifying module 450, where the rights and interests verifying module 450 is configured to:
Based on the platform attribute information, determining a rights and benefits verification interface of the third party platform by searching a stored third party dictionary;
and calling the equity verifying and verifying interface by using the target application program interface, finishing verifying and verifying the equity to be converted, and recording verifying and verifying information of the equity to be converted.
Further, as shown in fig. 5, the redemption device 400 further includes a status adjustment module 460, where the status adjustment module 460 is configured to:
and according to the verification information, adjusting the exchange state of the rights to be exchanged in the stored rights exchange list.
Further, as shown in fig. 5, the redemption apparatus 400 further includes a reconciliation module 470, where the reconciliation module 470 is configured to:
responding to the triggering of the reconciliation event, and generating a equity reconciliation result based on the exchange information and the verification information;
and responding to the reconciliation request of the third party platform, and feeding back the equity reconciliation result to the third party platform.
Further, the gateway includes a plurality of candidate application program interfaces; the first interface determining module 410, when configured to determine, in response to a request for exchanging rights, a target application program interface used when exchanging the rights to be exchanged, the first interface determining module 410 is configured to:
Responding to a rights exchange request, checking the rights exchange request based on request parameters carried by the rights exchange request, and determining whether the rights exchange request has a security problem or not;
if not, determining a target application program interface used for exchanging the rights to be exchanged from the candidate application program interfaces based on the interface information of each candidate application program interface.
Further, when the first interface determining module 410 is configured to check the rights exchange request based on the request parameter carried by the rights exchange request to determine whether the rights exchange request has a security problem, the first interface determining module 410 is configured to:
determining whether the equity redemption request is repeatedly submitted within a preset time period based on the request parameters;
if not, determining whether the request signature in the request parameters is consistent with a preset signature;
if the request parameters are consistent, carrying out authority verification on the rights exchange request based on the authority parameters in the request parameters, and determining whether the rights exchange request has the request authority;
and if the request authority is provided, determining that the rights exchange request has no security problem.
Further, when the first interface determining module 410 is configured to determine, based on the interface information of each candidate application program interface, a target application program interface used for redeeming the rights to be redeemed from the candidate application program interfaces, the first interface determining module 410 is configured to:
determining the running load of each candidate application program interface based on the interface information of each candidate application program interface;
and determining the candidate application program interface with the minimum operation load as a target application program interface, distributing a request route for the target application program interface, and limiting the operation flow of the target application program interface.
The third party rights and interests exchange device provided by the embodiment of the application responds to the rights and interests exchange request and determines the target application program interface used when exchanging the rights and interests to be exchanged; determining platform attribute information of a third party platform to which the rights to be redeemed belong based on the rights attribute information of the rights to be redeemed; determining a rights exchange interface of the third party platform by searching a stored third party dictionary based on the platform attribute information; and calling the equity exchange interface by utilizing the target application program interface to finish the exchange of the equity to be exchanged, and recording the exchange information of the equity to be exchanged. Therefore, when the user has the rights exchange requirement, the service platform can realize the call of the rights exchange interface of the third party platform by using the gateway, and different docking interfaces are not required to be developed for different third party platforms, so that the development difficulty and maintenance difficulty of the service platform are reduced; meanwhile, the user can finish the exchange of the rights and interests to be exchanged in the service platform, and the exchange flow of the rights and interests to be exchanged is simplified.
Referring to fig. 6, fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the application. As shown in fig. 6, the electronic device 600 includes a processor 610, a memory 620, and a bus 630.
The memory 620 stores machine-readable instructions executable by the processor 610, when the electronic device 600 is running, the processor 610 communicates with the memory 620 through the bus 630, and when the machine-readable instructions are executed by the processor 610, the steps of the third party benefit exchange method in the method embodiment shown in fig. 1 can be executed, and the specific implementation manner can be referred to the method embodiment and will not be described herein.
The embodiment of the present application further provides a computer readable storage medium, where a computer program is stored on the computer readable storage medium, and when the computer program is executed by a processor, the steps of the third party benefit exchange method in the method embodiment shown in fig. 1 may be executed, and a specific implementation manner may refer to the method embodiment and will not be described herein.
It will be clear to those skilled in the art that, for convenience and brevity of description, specific working procedures of the above-described systems, apparatuses and units may refer to corresponding procedures in the foregoing method embodiments, and are not repeated herein.
In the several embodiments provided by the present application, it should be understood that the disclosed systems, devices, and methods may be implemented in other manners. The above-described apparatus embodiments are merely illustrative, for example, the division of the units is merely a logical function division, and there may be other manners of division in actual implementation, and for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be through some communication interface, device or unit indirect coupling or communication connection, which may be in electrical, mechanical or other form.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a non-volatile computer readable storage medium executable by a processor. Based on this understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution, in the form of a software product stored in a storage medium, comprising several instructions for causing a computer device (which may be a personal computer, a server, a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
Finally, it should be noted that: the above examples are only specific embodiments of the present application, and are not intended to limit the scope of the present application, but it should be understood by those skilled in the art that the present application is not limited thereto, and that the present application is described in detail with reference to the foregoing examples: any person skilled in the art may modify or easily conceive of the technical solution described in the foregoing embodiments, or perform equivalent substitution of some of the technical features, while remaining within the technical scope of the present disclosure; such modifications, changes or substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present application, and are intended to be included in the scope of the present application. Therefore, the protection scope of the application is subject to the protection scope of the claims.

Claims (10)

1. The exchange method of the third party rights and interests is characterized by being applied to a gateway of a service platform; the exchange method comprises the following steps:
in response to the equity redemption request, determining a target application program interface used when redeeming equity to be redeemed; wherein, a plurality of candidate application program interfaces which can be used for carrying out rights and interests exchange are arranged in the gateway; the target application program interface is the one with the smallest running load in the candidate application program interfaces;
determining platform attribute information of a third party platform to which the rights to be redeemed belong based on the rights attribute information of the rights to be redeemed;
based on the platform attribute information, determining a rights exchange interface of the third party platform by searching a third party dictionary stored in a gateway;
and calling the equity exchange interface by utilizing the target application program interface to finish the exchange of the equity to be exchanged, and recording the exchange information of the equity to be exchanged.
2. The redemption method of claim 1, wherein after completion of redemption of the to-be-redeemed equity, the redemption method further comprises:
based on the platform attribute information, determining a rights and benefits verification interface of the third party platform by searching a stored third party dictionary;
And calling the equity verifying and verifying interface by using the target application program interface, finishing verifying and verifying the equity to be converted, and recording verifying and verifying information of the equity to be converted.
3. The redemption method of claim 2, wherein the redemption method further comprises:
and according to the verification information, adjusting the exchange state of the rights to be exchanged in the stored rights exchange list.
4. The redemption method of claim 2, wherein the redemption method further comprises:
responding to the triggering of the reconciliation event, and generating a equity reconciliation result based on the exchange information and the verification information;
and responding to the reconciliation request of the third party platform, and feeding back the equity reconciliation result to the third party platform.
5. The redemption method of claim 1, wherein the gateway includes a plurality of candidate application program interfaces; the determining, in response to the rights exchange request, a target application program interface used when exchanging the rights to be exchanged, including:
responding to a rights exchange request, checking the rights exchange request based on request parameters carried by the rights exchange request, and determining whether the rights exchange request has a security problem or not;
If not, determining a target application program interface used for exchanging the rights to be exchanged from the candidate application program interfaces based on the interface information of each candidate application program interface.
6. The redemption method of claim 5, wherein the verifying the equity redemption request based on the request parameters carried by the equity redemption request to determine whether a security issue exists with the equity redemption request includes:
determining whether the equity redemption request is repeatedly submitted within a preset time period based on the request parameters;
if not, determining whether the request signature in the request parameters is consistent with a preset signature;
if the request parameters are consistent, carrying out authority verification on the rights exchange request based on the authority parameters in the request parameters, and determining whether the rights exchange request has the request authority;
and if the request authority is provided, determining that the rights exchange request has no security problem.
7. The redemption method of claim 5, wherein the determining a target application program interface from the plurality of candidate application program interfaces for redeeming the rights to be redeemed based on the interface information of each candidate application program interface includes:
Determining the running load of each candidate application program interface based on the interface information of each candidate application program interface;
and determining the candidate application program interface with the minimum operation load as a target application program interface, distributing a request route for the target application program interface, and limiting the operation flow of the target application program interface.
8. The exchange device of the third party rights and interests is characterized by being applied to a gateway of a service platform; the redemption device includes:
the first interface determining module is used for responding to the rights and interests exchange request and determining a target application program interface used when the rights and interests to be exchanged are exchanged; wherein, a plurality of candidate application program interfaces which can be used for carrying out rights and interests exchange are arranged in the gateway; the target application program interface is the one with the smallest running load in the candidate application program interfaces;
the information determining module is used for determining platform attribute information of a third party platform to which the rights to be converted belong based on the rights attribute information of the rights to be converted;
the second interface determining module is used for determining a benefit exchange interface of the third party platform by searching a third party dictionary stored in the gateway based on the platform attribute information;
And the equity exchange module is used for calling the equity exchange interface by utilizing the target application program interface, finishing the exchange of the equity to be exchanged and recording the exchange information of the equity to be exchanged.
9. An electronic device, comprising: a processor, a memory and a bus, the memory storing machine readable instructions executable by the processor, the processor and the memory in communication via the bus when the electronic device is running, the machine readable instructions when executed by the processor performing the steps of the redemption method of the third party benefit of any of claims 1 to 7.
10. A computer readable storage medium, characterized in that the computer readable storage medium has stored thereon a computer program which, when executed by a processor, performs the steps of the redemption method of the third party benefits of any of claims 1 to 7.
CN202211493045.8A 2022-11-25 2022-11-25 Third party rights exchange method and device, electronic equipment and readable storage medium Active CN115760234B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211493045.8A CN115760234B (en) 2022-11-25 2022-11-25 Third party rights exchange method and device, electronic equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211493045.8A CN115760234B (en) 2022-11-25 2022-11-25 Third party rights exchange method and device, electronic equipment and readable storage medium

Publications (2)

Publication Number Publication Date
CN115760234A CN115760234A (en) 2023-03-07
CN115760234B true CN115760234B (en) 2023-08-25

Family

ID=85338235

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211493045.8A Active CN115760234B (en) 2022-11-25 2022-11-25 Third party rights exchange method and device, electronic equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN115760234B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104408647A (en) * 2014-11-29 2015-03-11 深圳市无微不至数字技术有限公司 Credit exchange method, credit exchange device and system
CN108876471A (en) * 2018-06-29 2018-11-23 泰康保险集团股份有限公司 The exchanging method and device of platform integral
WO2020073052A1 (en) * 2018-10-05 2020-04-09 Averon Us, Inc. Methods, apparatuses, and computer program products for using an authenticated telephone number to transfer goods and services to designated recipients
CN112669062A (en) * 2020-12-23 2021-04-16 中国银联股份有限公司 Electronic card management method, server, system and storage medium
CN114596117A (en) * 2022-03-10 2022-06-07 百果园技术(新加坡)有限公司 Virtual gift package issuing method, system, device, storage medium and product
CN115271798A (en) * 2022-07-14 2022-11-01 阿里健康科技(杭州)有限公司 Rights and interests data processing system and method

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030023482A1 (en) * 2001-07-25 2003-01-30 Messner Amy E. Method and apparatus for redeeming of coupons via a wireless communication device
TW201333854A (en) * 2012-02-13 2013-08-16 zheng-xian Qiu Point value exchanging and distribution system
US20130332283A1 (en) * 2012-06-11 2013-12-12 Retailmenot, Inc. Devices, methods, and computer-readable media for redemption of merchant offers
SG10201806203VA (en) * 2018-07-19 2020-02-27 Mastercard International Inc Method and system for facilitating sharing of reward points

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104408647A (en) * 2014-11-29 2015-03-11 深圳市无微不至数字技术有限公司 Credit exchange method, credit exchange device and system
CN108876471A (en) * 2018-06-29 2018-11-23 泰康保险集团股份有限公司 The exchanging method and device of platform integral
WO2020073052A1 (en) * 2018-10-05 2020-04-09 Averon Us, Inc. Methods, apparatuses, and computer program products for using an authenticated telephone number to transfer goods and services to designated recipients
CN112669062A (en) * 2020-12-23 2021-04-16 中国银联股份有限公司 Electronic card management method, server, system and storage medium
CN114596117A (en) * 2022-03-10 2022-06-07 百果园技术(新加坡)有限公司 Virtual gift package issuing method, system, device, storage medium and product
CN115271798A (en) * 2022-07-14 2022-11-01 阿里健康科技(杭州)有限公司 Rights and interests data processing system and method

Also Published As

Publication number Publication date
CN115760234A (en) 2023-03-07

Similar Documents

Publication Publication Date Title
US9633355B2 (en) Knowledge based verification of the identity of a user
CN100444544C (en) Authentication system, server, and authentication method and program
CN101405743A (en) User-browser interaction analysis authentication system
CN110084048B (en) Method for implementing bank unified user management
CN111369333B (en) Day-cut cooperative processing method and system for distributed system
CN109492985A (en) A kind of checking method, apparatus and system
TW201804409A (en) A system and method for automatically crossing platforms to perform shareholder voting
CN112991046A (en) Electronic resource limit control method, device, equipment and storage medium
CN113904821A (en) Identity authentication method and device and readable storage medium
KR102039658B1 (en) Platform system for letter crypto currency
US20210150632A1 (en) Systems and methods for authenticated voucher distribution using blockchain
CN115760234B (en) Third party rights exchange method and device, electronic equipment and readable storage medium
CN110619565A (en) On-chain pledge asset compensation system and method through off-chain settlement
KR101374712B1 (en) Method and system for issuing mass coupon
KR102171398B1 (en) Integrated management system for cryptocurrency users
KR102163779B1 (en) Reward system using blockchain
KR102001070B1 (en) Method for posting up security-enhanced account service
KR20060045192A (en) System, method and banking terminal for customer relationship management integrating the plurality of banking channels
CN111383087A (en) Report access method and device, storage medium and electronic equipment
JP2008217346A (en) Method for reducing load in peak time period in online system
JP4864954B2 (en) Service point operation system, method, and program
KR20210022422A (en) System for generating online community based on search word
CN109685578A (en) Integration managing method, server and the storage medium of card and subsystem
KR102155365B1 (en) In-memory based interpersonal financial transaction system
JP2020119485A (en) Content delivery system and program

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