Method, apparatus and electronic device for processing service data
By dynamically managing login operation call groups in online games, only business modules with accessible states are called, which solves the problems of data inconsistency and redundancy, and improves login efficiency and server performance.
Patent Information
- Application Number
- CN202310397304.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-04-10
- Publication Date
- 2026-01-02
- Estimated Expiration
- 2043-04-10
AI Technical Summary
In online games, when players log off due to network issues, the game system data becomes inconsistent. The expansion of the login module leads to system redundancy, which consumes space and affects efficiency.
By responding to account login events to obtain login operation call parameters, login operation functions of business modules that are in an accessible state are called only to achieve data consistency processing and dynamically manage login operation call groups to reduce invalid operations.
It improved the efficiency of users logging into the game system, reduced redundant data in the game system, and improved the performance of the game server.
Smart Images

Figure CN116603246B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of data processing, in particular to a business data processing method and device and electronic equipment. BACKGROUND
[0002] In a network game, a player may log off at any time for various reasons. The player may log off when using a game system to interact with other business systems, for example, when performing a payment operation on a payment system, or may be forced to log off due to network interruption and other problems when performing a game operation through a certain game module of the game system. If the player logs off when the interaction operation or the game operation is not completed, the operation data related to the incomplete operation needs to be obtained when the player logs in again, so that the player can continue to perform the corresponding operation after logging in, and the data remains consistent. In the related art, a login operation module can be established to obtain the operation data of each related system module through the login operation module when the player logs in, thereby realizing data consistency. However, as the game business expands, the login operation module will also expand, resulting in data redundancy of the game system and occupying system space. SUMMARY
[0003] Therefore, the present application aims to provide a business data processing method and device and electronic equipment to improve the login efficiency of users logging into a game system and reduce redundant data in the system.
[0004] In a first aspect, an embodiment of the present application provides a business data processing method, comprising: in response to an account login event for a target system, obtaining a login operation calling parameter; the target system comprising a plurality of business modules; based on the login operation calling parameter, calling a login operation function of a target business module in the plurality of business modules; the target business module being in an accessible state; performing data processing on target business data in the target business module through the login operation function to obtain processed target business data; the target business data being associated with a target account corresponding to the account login event; and the processed target business data having data consistency.
[0005] In a second aspect, an embodiment of the present application provides a business data processing device, comprising: a calling parameter obtaining module configured to, in response to an account login event for a target system, obtain a login operation calling parameter; the target system comprising a plurality of business modules; a function calling module configured to, based on the login operation calling parameter, call a login operation function of a target business module in the plurality of business modules; the target business module being in an accessible state; and a data processing module configured to perform data processing on target business data in the target business module through the login operation function to obtain processed target business data; the target business data being associated with a target account corresponding to the account login event; and the processed target business data having data consistency.
[0006] In a third aspect, an electronic device is provided, which includes a processor and a memory. The memory stores machine executable instructions capable of being executed by the processor. The processor executes the machine executable instructions to implement the method for processing service data.
[0007] In a fourth aspect, a machine readable storage medium is provided, which stores machine executable instructions. When the machine executable instructions are invoked and executed by a processor, the machine executable instructions cause the processor to implement the method for processing service data.
[0008] The embodiments of the present application have the following beneficial effects:
[0009] The method, device and electronic device for processing service data, in response to an account login event for a target system, obtain a login operation calling parameter; based on the login operation calling parameter, call a login operation function of a target service module in a plurality of service modules; the target service module is in an accessible state; perform data processing on target service data in the target service module through the login operation function to obtain processed target service data; the target service data is associated with a target account corresponding to the account login event; and the processed target service data has data consistency. In this way, after a user logs in to a game system, only the login operation function of the service module in the accessible state is called to achieve data consistency of the service data. This improves the login efficiency of the user logging in to the game system, and reduces redundant data in the game system.
[0010] Other features and advantages of the present application will be further described in the following description, and will become more apparent from the description, or will be learned easily by practice of the present application. The objects and other advantages of the present application will be realized and achieved by the structure particularly pointed out in the description, claims and accompanying drawings.
[0011] In order to make the above objects, features and advantages of the present application more apparent, the following will describe preferred embodiments in detail with reference to the accompanying drawings. BRIEF DESCRIPTION OF DRAWINGS
[0012] In order to more clearly illustrate the specific embodiments of the present application or the technical solutions in the prior art, the following will briefly introduce the drawings needed to be used in the specific embodiments or prior art description. Obviously, the drawings described below are some embodiments of the present application, and for those skilled in the art, other drawings can also be obtained from these drawings without creative labor.
[0013] Figure 1 A flowchart of a method for processing service data provided by the embodiments of the present application;
[0014] Figure 2 A structural schematic diagram of a service data processing device provided by an embodiment of the present application is shown in FIG. 1.
[0015] Figure 3 A structural schematic diagram of an electronic device provided by an embodiment of the present application is shown in FIG. 2. DETAILED DESCRIPTION
[0016] In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions of the present application will be described clearly and completely below with reference to the drawings, obviously, the described embodiments are some but not all of the embodiments of the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without creative work fall within the protection scope of the present application.
[0017] In a network game, because a player will log off at any time for various reasons, it will cause the game system to have a phenomenon of inconsistent data. For example, a player initiates a payment, and when waiting for a result returned by a third-party payment service, the player logs off due to network problems. When the player logs in the server again, the payment process should continue to run.
[0018] When a player logs in a game server, various state operations are usually needed to maintain data consistency, and these operations are distributed in multiple business modules of the game system, which are collectively referred to as login operations (login op). Because the system and the game are growing, the size of the login op will gradually increase, which brings considerable pressure to code management and performance consumption.
[0019] In some products, the login op is separated into a module, and multiple call tuples are configured for the login op. The call tuples are the calling parameters of the functions of the various business system modules for performing the login operation. This way reduces the direct coupling of the login process and the various business system modules, and improves maintainability. However, this part of static configuration still needs to be expanded, and the login op becomes a heavy burden, some of which are not needed to be executed, and even from the functions that have been abandoned.
[0020] Based on this, the embodiments of the present application provide a service data processing method, device and electronic device, which can be applied to various scenarios that need to perform login operations.
[0021] Referring to Figure 1 , first, a service data processing method provided by an embodiment of the present application is introduced, which includes the following steps:
[0022] Step S102, in response to an account login event of a target system, obtaining a login operation calling parameter; the target system includes a plurality of business modules.
[0023] The target system can be a game system, an online shopping system, or the like. A user can generally register an account on the target system and log in to the target system by an account name and a password set during registration. Since a business system generally needs to complete a plurality of sub-businesses, a corresponding business module can be set for different sub-businesses. For example, a game system can generally include a main game play business, a branch game play business, a peripheral purchase business, an account information management business, and the like, and a corresponding business module can be set for each business.
[0024] Since a user generally performs a corresponding business operation through a business module, when the business operation is interrupted, a data inconsistency problem can occur, and therefore the business module generally has a need to perform a login operation. Generally, a login operation function can be set in each business module. When an account login event occurs, the login operation function in the business module can be called by a login operation calling parameter to perform data consistency checking on related business data and handle data inconsistency.
[0025] The login operation calling parameter can be different for different running environments of the target system. For example, for an object-oriented programming language, the parameter can be a class instance; for C language, the login operation calling parameter can only be the name of the login operation function in the business module. In some programming environments, the login operation calling parameter can also be the name of the business module and the name of the login operation function. The specific setting can be based on the needs and is not limited herein.
[0026] Step S104, based on the login operation calling parameter, calling a login operation function of a target business module in the plurality of business modules; the target business module is in an accessible state.
[0027] The accessible state generally means that a user can access the target business module through an account and perform a corresponding business operation through the target business module. Since a user can perform a business operation through the target business module, a data inconsistency problem caused by interruption of the business operation can occur, and therefore it is necessary to perform a login operation on the target business module.
[0028] Meanwhile, there can be a business module in the target system that is in an inaccessible state and thus cannot be accessed by the user and used for business operation. For example, some business modules correspond to time-limited operations, and the business module can be discarded after a preset time period. The login operation calling parameter usually only needs to call the login function of the business module in the accessible state among the multiple business modules, i.e., the login operation function of the target business module. In order to prevent the business module in the inaccessible state from performing unnecessary login operations, the login operation function corresponding to the business module can be directly deleted when the business module enters the inaccessible state.
[0029] The process of calling the login operation function of the target business module based on the login operation calling parameter is related to the running environment of the target system, and can be called according to the function calling rules preset in different running environments. The specific implementation manner can be set according to requirements, which is not limited here.
[0030] In step S106, the target business data in the target business module is processed by the login operation function to obtain processed target business data; the target business data is associated with the target account corresponding to the account login event; and the processed target business data has data consistency.
[0031] The business data generated by the user through the target system for business operation is usually associated with the account used by the user. For example, the storage space of the business data can be set for each account, and the business data corresponding to the account is stored in the storage space; the identification information of the associated target account can also be added in the business data. After the login operation function is called, the identification information of the target account can be used as the function parameter of the login operation function to facilitate the search for the target business data associated with the target account.
[0032] Data consistency is a key point for evaluating data quality. In general, consistency refers to whether the information attributes of the same information subject in different data sets are the same, and whether the entities and attributes meet the consistency constraint relationship. The specific manner of processing the target business data by the login operation function is related to the business operation corresponding to the target business module. The consistency constraint relationship is usually set based on the specific business operation, so as to check whether the target business data meets the constraint relationship. If not, the business data is processed according to the flow of the business operation to meet the constraint relationship.
[0033] For example, when a user accesses a business module to make a purchase, the resulting business data can include the type of product purchased and purchase status parameters. Different values for the purchase status parameters can represent different purchase states, such as "payment initiated," "payment not yet completed," or "payment successful." The login function of this business module can check if the purchase status parameter corresponds to the value for a successful payment. If the parameter value indicates an unpaid or initiated payment state, the payment interface should be displayed to the user or an unpaid reminder window should be generated, following the product purchase process. If the user continues the payment process, checking if the purchase status parameter corresponds to the value for a successful payment, or cancels the operation, then the business data corresponding to that operation is confirmed to be consistent.
[0034] The aforementioned method for processing business data involves: responding to an account login event for the target system by obtaining login operation call parameters; based on these parameters, invoking the login operation function of the target business module among multiple business modules; ensuring the target business module is in an accessible state; processing the target business data within the target business module using the login operation function to obtain processed target business data; associating the target business data with the target account corresponding to the account login event; and ensuring data consistency of the processed target business data. In this method, after a user logs into the game system, only the login operation function of the accessible business module is called to achieve data consistency. This method improves the efficiency of user login to the game system while reducing redundant data within the game system.
[0035] The following embodiment provides an implementation method for calling the login operation function of a target business module among multiple business modules based on login operation call parameters.
[0036] The login operation call parameters mentioned above may include the function name of the function to be called, or other identifiers of the function, and may also include the business module identifier corresponding to the function to be called. When the login operation call parameters include the business module identifier corresponding to the function to be called and its function name, the target business module can first be determined from multiple business modules based on the business module identifier corresponding to the function to be called, and then the login operation function can be called from the target business module based on the function name of the function to be called.
[0037] The login operation call parameter can be saved in the form of a tuple. When the target business modules include multiple target business modules, the login operation call parameter corresponding to each target business module can be a tuple. The tuple is an ordered data collection, and the data in the tuple can be data in different formats. When the target system starts running, in response to the target system starting running, a parameter container corresponding to the login operation call parameter can be established, and the parameter container is used to save the login operation call parameters of the target business modules; then the login operation call parameters of the target business module in the multiple business modules are obtained; specifically, the target business module can send the login operation call parameter to the corresponding parameter container through the pre-obtained registration interface, so as to save the login operation call parameter through the parameter container.
[0038] The login operation call parameter can be generated when the business module enters the accessible state. Specifically, when the first business module in the multiple business modules enters the accessible state, in response to the first business module entering the accessible state, the login operation call parameter of the first business module is generated. The process of generating the login operation call function is related to the function call mode in the target system running environment. For example, when the login operation call function includes the identifier of the target business module and the name of the login operation function, the identifier "module1" of the first business module and the name "loginop1" of the login operation function can be saved in a tuple, and the tuple is determined as the login operation call parameter of the first business module.
[0039] When the business module enters the inaccessible state, it is meaningless to perform the login operation on the business data in the business module. Therefore, in response to the first business module in the multiple business modules entering the inaccessible state, the login operation call parameter of the first business module needs to be deleted.
[0040] The following embodiments provide an implementation manner of performing data processing on target business data in a target business module through a login operation function.
[0041] Generally, the target business data is generated by the target account performing a business operation through the target business module. For example, the position data, skill data (such as skill release time, damage value, etc.) and other battle data of a virtual character generated by the game operation of the target account in the game match module. When the target business data is processed, the target business data in the target business module can be analyzed through the login operation function to obtain an analysis result; the analysis result indicates the operation state of the business operation corresponding to the target business data, for example, by analyzing the battle data in the game match module, the operation state of the game operation of the target account can be determined. Then, the target business data is processed based on the operation state of the business operation.
[0042] The business operation can have only two operation states, operation completed state and operation uncompleted state, or can include multiple operation states, such as first stage in progress state, first stage completed state, second stage in progress state, second stage completed state, nth stage in progress state, nth stage completed state, etc. Generally, each completed stage is set as a target operation state. When the business operation is the target operation state, no further processing is needed. Otherwise, further processing is needed. Specifically, it can be judged whether the operation state of the business operation is consistent with the preset target operation state; if not, the business operation is executed according to the operation flow of the business operation based on the target business data, so as to make the operation state of the business operation consistent with the preset target operation state.
[0043] The embodiment of the present application further provides another processing method of business data, which is implemented based on the method shown in the embodiment of the present application. Figure 1 The main technical problem solved by the method is that a dynamic management mechanism is needed, so that the login op calling group can be edited at runtime, and callback items can be added or deleted as needed, so as to avoid useless login operations and improve the performance of the game server.
[0044] The method first further divides the calling tuple into static tuples and dynamic tuples. The static login op calling tuples are registered at the startup of the server. The login op calling tuples related to the specific system are registered at the startup of the specific system, and the login op calling tuples related to the specific system are unregistered at the shutdown of the specific system.
[0045] The method is implemented by the following ways.
[0046] Firstly, the calling group container needs to be defined.
[0047] static mixed arrLoginOp=({
[0048] ({"mod","func"}),
[0049] });
[0050] The two parameters mod and func respectively represent module and function name. When the project uses the LPC script, the function can be called by the way of module and function name.
[0051] Then, the registration interface needs to be defined.
[0052]
[0053]
[0054] And the unregistration interface is defined.
[0055] void unregister_loginop(string mod,string func)
[0056] {
[0057] arrLoginOp-=({({mod,func})});
[0058] }
[0059] When the activity of a certain game module starts, register the login op through the above registration interface: void pc_start_cb()
[0060] {
[0061] LOGINOP->register_login_op(__FILE__,"login_check");
[0062] }
[0063] When the activity of the game module ends, unregister the login op:
[0064] void pc_stop_cb()
[0065] {
[0066] LOGINOP->unregister_login_op(__FILE__,"login_check");
[0067] }
[0068] Since there are a large number of timing games in the game, after the above method is implemented, the consumption of system resources by the login operation is reduced, the performance of the game server is improved, and the login response time of the player is reduced.
[0069] For the above method embodiment, refer to the embodiment of the application shown in Figure 2 The application provides a processing device for service data, which comprises:
[0070] a calling parameter acquisition module 202, configured to acquire a login operation calling parameter in response to an account login event of a target system; the target system comprises a plurality of service modules;
[0071] a function calling module 204, configured to call a login operation function of a target service module in the plurality of service modules based on the login operation calling parameter; the target service module is in an accessible state;
[0072] The data processing module 206 is configured to perform data processing on the target service data in the target service module by using the login operation function, to obtain processed target service data; the target service data is associated with a target account corresponding to the account login event; and the processed target service data has data consistency.
[0073] The above-mentioned service data processing apparatus is configured to, in response to an account login event for a target system, obtain a login operation calling parameter; based on the login operation calling parameter, call a login operation function of a target service module in a plurality of service modules; the target service module is in an accessible state; perform data processing on target service data in the target service module by using the login operation function, to obtain processed target service data; the target service data is associated with a target account corresponding to the account login event; and the processed target service data has data consistency. In this way, after a user logs in to a game system, only the login operation function of the service module in the accessible state is called to achieve data consistency of the service data. This improves the login efficiency of the user logging in to the game system, and reduces redundant data in the game system.
[0074] The above-mentioned login operation calling parameter includes a service module identifier corresponding to a function to be called, and a function name of the function to be called; and the function calling module is further configured to: based on the service module identifier corresponding to the function to be called, determine the target service module from the plurality of service modules; and based on the function name of the function to be called, call the login operation function from the target service module.
[0075] The above-mentioned target service data corresponds to a business operation performed by a target account through a target service module; and the data processing module is further configured to: perform analysis on the target service data in the target service module by using the login operation function, to obtain an analysis result; the analysis result indicates an operation state of the business operation corresponding to the target service data; and based on the operation state of the business operation, process the target service data.
[0076] The above-mentioned data processing module is further configured to: determine whether the operation state of the business operation is consistent with a preset target operation state; if not, based on the target service data, continue to perform the business operation according to an operation flow of the business operation, to make the operation state of the business operation consistent with the preset target operation state.
[0077] The above-mentioned apparatus further includes: a parameter container generation module configured to, in response to the target system starting to run, establish a parameter container corresponding to the login operation calling parameter; a parameter acquisition module configured to acquire the login operation calling parameter of the target service module in the plurality of service modules; and a parameter saving module configured to save the login operation calling parameter by using the parameter container.
[0078] The apparatus further includes a call parameter generation module configured to generate a login operation call parameter of a first service module in the plurality of service modules in response to the first service module entering an accessible state.
[0079] The apparatus further includes a call parameter deletion module configured to delete the login operation call parameter of the first service module in the plurality of service modules in response to the first service module entering an inaccessible state.
[0080] The embodiment further provides an electronic device including a processor and a memory. The memory stores machine executable instructions executable by the processor. The processor executes the machine executable instructions to implement the service data processing method. Specifically, the method includes the following steps.
[0081] In response to an account login event for a target system, a login operation call parameter is obtained. The target system includes a plurality of service modules. Based on the login operation call parameter, a login operation function of a target service module in the plurality of service modules is called. The target service module is in an accessible state. A target service data in the target service module is processed through the login operation function to obtain processed target service data. The target service data is associated with a target account corresponding to the account login event. The processed target service data has data consistency.
[0082] In the above manner, after a user logs in to a game system, only the login operation function of the service module in the accessible state is called to implement data consistency of the service data. This manner improves the login efficiency of the user logging in to the game system, and reduces redundant data in the game system.
[0083] Optionally, the login operation call parameter includes a service module identifier corresponding to a function to be called and a function name of the function to be called. Based on the login operation call parameter, the login operation function of the target service module in the plurality of service modules is called. The step includes determining the target service module from the plurality of service modules based on the service module identifier corresponding to the function to be called, and calling the login operation function from the target service module based on the function name of the function to be called.
[0084] Optionally, the target service data corresponds to a business operation performed by the target account through the target service module. The step of processing the target service data in the target service module through the login operation function includes parsing the target service data in the target service module through the login operation function to obtain a parsing result. The parsing result indicates an operation state of the business operation corresponding to the target service data. The target service data is processed based on the operation state of the business operation.
[0085] Optionally, the step of processing the target business data based on the operation state of the business operation comprises: judging whether the operation state of the business operation is consistent with the preset target operation state; and if not, continuing to perform the business operation according to the operation flow of the business operation based on the target business data, so as to make the operation state of the business operation consistent with the preset target operation state.
[0086] Optionally, the method further comprises: in response to the target system starting to run, establishing a parameter container corresponding to the login operation invocation parameter; obtaining the login operation invocation parameter of the target business module in the plurality of business modules; and saving the login operation invocation parameter in the parameter container.
[0087] Optionally, the method further comprises: in response to the first business module in the plurality of business modules entering the accessible state, generating the login operation invocation parameter of the first business module.
[0088] Optionally, after the step of generating the login operation invocation parameter of the first business module in response to the first business module in the plurality of business modules entering the accessible state, the method further comprises: in response to the first business module in the plurality of business modules entering the inaccessible state, deleting the login operation invocation parameter of the first business module.
[0089] Referring to Figure 3 The electronic device shown in the figure comprises a processor 100 and a memory 101, the memory 101 storing machine executable instructions capable of being executed by the processor 100, and the processor 100 executes the machine executable instructions to implement the above-mentioned business data processing method.
[0090] Further, Figure 3 The electronic device shown in the figure further comprises a bus 102 and a communication interface 103, and the processor 100, the communication interface 103 and the memory 101 are connected through the bus 102.
[0091] The memory 101 can contain a high-speed random access memory (RAM, Random Access Memory) and can also include a non-volatile memory, such as at least one disk memory. The communication connection between the system network element and at least one other network element is realized through at least one communication interface 103 (which can be wired or wireless), and the Internet, a wide area network, a local area network, a metropolitan area network, etc. can be used. The bus 102 can be an ISA bus, a PCI bus or an EISA bus, etc. The bus can be divided into an address bus, a data bus, a control bus, etc. For the sake of convenience, Figure 3 In the figure, only one bidirectional arrow is used to represent the bus, but it does not mean that there is only one bus or only one type of bus.
[0092] The processor 100 can be an integrated circuit chip with signal processing capability. In the implementation process, each step of the above method can be completed by the integrated logic circuit of hardware in the processor 100 or the instruction in the form of software. The processor 100 described above can be a general processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. Each method, step and logic block disclosed in the embodiment of the present application can be implemented or executed. The general processor can be a microprocessor or the processor can also be any conventional processor. The steps of the method disclosed in combination with the embodiment of the present application can be directly embodied as a hardware decoding processor for execution, or a combination of hardware and software modules in the decoding processor for execution. The software module can be located in a random access memory, a flash memory, a read only memory, a programmable read only memory or an electrically erasable programmable memory, a register or other mature storage medium in the art. The storage medium is located in the storage 101, and the processor 100 reads the information in the storage 101 and combines the hardware to complete the steps of the method of the above embodiment.
[0093] The embodiment also provides a machine readable storage medium, which stores machine executable instructions. When the machine executable instructions are called and executed by a processor, the machine executable instructions cause the processor to implement the above business data processing method.
[0094] The business data processing method, device and electronic equipment provided by the embodiment of the present application include a computer readable storage medium storing program codes, and the instructions included in the program codes can be used to execute the method described in the above method embodiment. Specifically as follows:
[0095] In response to an account login event for a target system, an login operation call parameter is obtained; the target system includes a plurality of business modules; based on the login operation call parameter, a login operation function of a target business module in the plurality of business modules is called; the target business module is in an accessible state; target business data in the target business module is processed through the login operation function to obtain processed target business data; the target business data is associated with a target account corresponding to the account login event; and the processed target business data has data consistency.
[0096] In the above manner, after a user logs in to the game system, only the login operation function of the service module in the accessible state is called to achieve data consistency of the business data. This manner improves the login efficiency of the user logging in to the game system, and reduces redundant data in the game system.
[0097] Optionally, the login operation calling parameter includes a service module identifier corresponding to the function to be called and a function name of the function to be called; and based on the login operation calling parameter, the login operation function of the target service module in the plurality of service modules is called, including: determining the target service module from the plurality of service modules based on the service module identifier corresponding to the function to be called; and calling the login operation function from the target service module based on the function name of the function to be called.
[0098] Optionally, the target business data corresponds to a business operation performed by the target account through the target service module; and the target business data in the target service module is processed by the login operation function, including: the target business data in the target service module is parsed by the login operation function to obtain a parsing result; the operation state of the business operation corresponding to the target business data is indicated by the parsing result; and the target business data is processed based on the operation state of the business operation.
[0099] Optionally, the target business data is processed based on the operation state of the business operation, including: determining whether the operation state of the business operation is consistent with a preset target operation state; if not, the business operation is continuously performed according to the operation flow of the business operation based on the target business data, so that the operation state of the business operation is consistent with the preset target operation state.
[0100] Optionally, the method further includes: in response to the target system starting to run, establishing a parameter container corresponding to the login operation calling parameter; obtaining the login operation calling parameter of the target service module in the plurality of service modules; and saving the login operation calling parameter in the parameter container.
[0101] Optionally, the method further includes: in response to the first service module in the plurality of service modules entering the accessible state, generating the login operation calling parameter of the first service module.
[0102] Optionally, after the login operation calling parameter of the first service module is generated in response to the first service module in the plurality of service modules entering the accessible state, the method further includes: in response to the first service module in the plurality of service modules entering the inaccessible state, deleting the login operation calling parameter of the first service module.
[0103] Reference is made to Figure 3As shown, the electronic device includes a processor 100 and a memory 101, the memory 101 storing machine executable instructions capable of being executed by the processor 100, the processor 100 executing the machine executable instructions to implement the processing method of the service data.
[0104] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the system and device described above can refer to the corresponding process in the foregoing method embodiments, which will not be described here.
[0105] In addition, in the description of the embodiments of the present application, unless otherwise explicitly specified and limited, the terms "mounting", "connecting", "connecting" should be understood broadly, for example, it can be fixedly connected, or it can be detachably connected, or integrally connected; it can be mechanically connected, or it can be electrically connected; it can be directly connected, or it can be indirectly connected through an intermediate medium, or it can be the communication inside two elements. For those skilled in the art, the specific meaning of the above terms in the present application can be understood according to the specific circumstances.
[0106] The functions, if realized in the form of software function units and sold or used as independent products, can be stored in a computer readable storage medium. Based on such understanding, the technical solutions of the present application essentially or the parts of the prior art that make contributions or parts of the technical solutions can be embodied in the form of software products. The computer software product is stored in a storage medium, including a plurality of instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the method described in various embodiments of the present application. The foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM, Read-Only Memory), a random access memory (RAM, Random Access Memory), a magnetic disk or an optical disk, and various program code storage media.
[0107] In the description of the present application, it should be noted that the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer" and the like indicate the orientation or positional relationship based on the orientation or positional relationship shown in the drawings, and are only for the convenience of describing the present application and simplifying the description, and do not indicate or imply that the devices or elements referred to must have a particular orientation, be constructed and operated in a particular orientation, and therefore cannot be understood as a limitation on the present application. In addition, the terms "first", "second", "third" are only for descriptive purposes, and cannot be understood as indicating or implying relative importance.
[0108] Finally, it should be noted that the above examples are merely specific embodiments of the present application, and are used to illustrate the technical solutions of the present application, but are not intended to limit the present application. The protection scope of the present application is not limited thereto. Although the present application has been described in detail with reference to the foregoing examples, those skilled in the art should understand that any person skilled in the art can still modify or easily think of changes to the technical solutions recorded in the foregoing examples, or make equivalent replacements to some of the technical features, within the technical range disclosed by the present application. These modifications, changes or replacements do not cause the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present application, and should be covered within the protection scope of the present application. Therefore, the protection scope of the present application should be subject to the protection scope of the claims.
Claims
1. A processing method of service data, characterized by, The method comprises the following steps: in response to an account login event for a target system, obtaining a login operation call parameter; the target system comprises a plurality of business modules; based on the login operation call parameter, calling a login operation function of a target business module in the plurality of business modules; the target business module is in an accessible state; performing data processing on target business data in the target business module through the login operation function to obtain processed target business data; the target business data is associated with a target account corresponding to the account login event; the processed target business data has data consistency; the target business data corresponds to a business operation performed by the target account through the target business module; the step of performing data processing on the target business data in the target business module through the login operation function comprises: parsing the target business data in the target business module through the login operation function to obtain a parsing result; the parsing result indicates the operation state of the business operation corresponding to the target business data; determining whether the operation state of the business operation is consistent with a preset target operation state; if not, based on the target business data, continuing to perform the business operation according to the operation process of the business operation, so that the operation state of the business operation is consistent with the preset target operation state.
2. The method of claim 1, wherein, the login operation call parameter comprises a business module identifier corresponding to a to-be-called function, and a function name of the to-be-called function; based on the login operation call parameter, calling a login operation function of a target business module in the plurality of business modules comprises: based on the business module identifier corresponding to the to-be-called function, determining a target business module from the plurality of business modules; based on the function name of the to-be-called function, calling a login operation function from the target business module.
3. The method of claim 1, wherein, The method further comprises: in response to the target system starting to run, establishing a parameter container corresponding to the login operation call parameter; obtaining a login operation call parameter of a target business module in the plurality of business modules; saving the login operation call parameter through the parameter container.
4. The method of claim 1, wherein, The method further comprises: in response to a first business module in the plurality of business modules entering an accessible state, generating a login operation call parameter of the first business module.
5. The method of claim 1, wherein, after generating the login operation call parameter of the first business module in response to the first business module in the plurality of business modules entering an accessible state, the method further comprises: in response to the first business module in the plurality of business modules entering an inaccessible state, deleting the login operation call parameter of the first business module.
6. A processing apparatus of service data, characterized by, The method comprises the following steps: a call parameter obtaining module for obtaining a login operation call parameter in response to an account login event for a target system; the target system comprises a plurality of business modules; a function calling module for calling a login operation function of a target business module in the plurality of business modules based on the login operation call parameter; the target business module is in an accessible state; The data processing module is configured to perform data processing on target service data in the target service module by using the login operation function, to obtain processed target service data; the target service data is associated with a target account corresponding to the account login event; and the processed target service data has data consistency. The target service data corresponds to a service operation performed by the target account through the target service module. The data processing module is further configured to: perform analysis on the target service data in the target service module by using the login operation function, to obtain an analysis result; the analysis result indicates an operation state of a service operation corresponding to the target service data; determine whether the operation state of the service operation is consistent with a preset target operation state; if not, continue to perform the service operation according to an operation flow of the service operation based on the target service data, to make the operation state of the service operation consistent with the preset target operation state.
7. An electronic device, comprising: A processor and a memory are included, the memory stores machine executable instructions capable of being executed by the processor, and the processor executes the machine executable instructions to implement the service data processing method in any one of claims 1-5.
8. A machine-readable storage medium, characterized in that, The machine readable storage medium stores machine executable instructions, and when the machine executable instructions are called and executed by the processor, the machine executable instructions cause the processor to implement the service data processing method in any one of claims 1-5.
Citation Information
Patent Citations
Method and apparatus for data recording, data playback and automatic test
CN109189665A
Application program processing method and related products
CN110752929A