Data processing method and device
By establishing a connection between the reward server and the heartbeat server, monitoring the working status of the third-party server and accessing snapshot data, the poor stability of the reward server is solved due to the failure of the third-party server, and the timeliness and accuracy of the reward is achieved, improving the Drivers are motivated to take orders.
Patent Information
- Application Number
- CN202010605379.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-06-29
- Publication Date
- 2024-11-12
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
In the prior art, the reward server is prone to failure or problems due to relying on a third-party server, which causes the reward server to fail to provide rewards to the driver in a timely and accurate manner, which affects the driver's enthusiasm for receiving orders.
By establishing a connection between the reward server and the heartbeat server, sending an inquiry request message to the heartbeat server to monitor the working status of the third party server, and accessing pre-stored snapshot data to obtain access data when the third party server is working status abnormal, thereby Ensure that the reward server can provide rewards to drivers in a timely and accurate manner.
It improves the stability and accuracy of the reward server, improves the driver's enthusiasm for accepting orders, and ensures the timeliness and accuracy of the rewards.
Smart Images

Figure CN111861547B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of communication technology, and in particular to a data processing method and device. Background Art
[0002] With the continuous development of smart devices and the continuous advancement of science and technology, more and more taxi apps are active in users' daily lives, making it easier for users to travel. Since the number of vehicles using taxi apps to accept orders is limited, taking measures to reward high-quality drivers can increase the enthusiasm of drivers and encourage more drivers to use taxi apps to accept orders.
[0003] In the prior art, the reward server usually relies on a third-party server, such as an order server or a credit server, and provides corresponding rewards to the driver based on snapshot data such as the driver's order volume and the driver's credit provided by each third-party server.
[0004] However, third-party servers are prone to failures or problems, which may undermine the stability of the reward server and make it impossible for the reward server to provide rewards to drivers accurately and promptly, thereby affecting the drivers' enthusiasm for accepting orders and reducing the drivers' acceptance rate. Summary of the invention
[0005] The present application provides a data processing method and device to solve the problem that a reward server cannot provide rewards to drivers in a timely and accurate manner due to problems with a third-party server.
[0006] In a first aspect, the present application provides a data processing method, which is applied to a reward server, wherein the reward server is used to reward drivers according to access data; the reward server is connected to a heartbeat server; the heartbeat server is also connected to a third-party server for detecting the working status of the third-party server; the third-party server is used to provide the access data; the method comprises:
[0007] Sending a query request message to the heartbeat server; the query request message is used to instruct the heartbeat server to monitor whether the third-party server is working normally;
[0008] Receiving a query response message sent by the heartbeat server, wherein the query response message includes a working status of the third-party server;
[0009] If the working state of the third-party server is abnormal working, the pre-stored snapshot data of the third-party server is accessed to obtain access data, wherein the snapshot data is obtained by imaging the data in the third-party server.
[0010] Optionally, the method further comprises:
[0011] If the working state of the third-party server is normal operation, the snapshot data of the third-party server in the current state is accessed to obtain the access data.
[0012] Optionally, the reward server is further connected to the third-party server; the method further comprises:
[0013] The access data is sent to the third-party server, so that the third-party server updates the currently stored snapshot data of the third-party server.
[0014] Optionally, the access data includes the driver's order volume and / or credit rating.
[0015] Optionally, the method further comprises:
[0016] Determining reward information for the driver based on the number of orders received and / or credit rating of the driver;
[0017] The reward information is sent to a terminal corresponding to the driver.
[0018] In a second aspect, the present application provides a data processing method, which is applied to a heartbeat server, wherein the heartbeat server is connected to a reward server and a third-party server respectively, and is used to detect the working status of the third-party server; the method comprises:
[0019] Receive a query request message sent by a reward server;
[0020] Determining the working status of the third-party server according to the query request message;
[0021] An inquiry response message is sent to the reward server, wherein the inquiry response message includes the working status of the third-party server, so that when the working status of the third-party server is abnormal, the reward server accesses the pre-stored snapshot data of the third-party server to obtain access data, wherein the snapshot data is obtained by imaging the data in the third-party server.
[0022] Optionally, determining the working status of the third-party server according to the query request message includes:
[0023] Sending a heartbeat request to the third-party server according to the query request message;
[0024] If a heartbeat response returned by the third-party server is received, it is determined that the working status of the third-party server is normal operation;
[0025] If no heartbeat response returned by the third-party server is received within a preset time period, or an error response returned by the third-party server is received, it is determined that the working state of the third-party server is abnormal working.
[0026] Optionally, the access data includes the driver's order volume and / or credit rating.
[0027] In a third aspect, the present application provides a reward server, the reward server is used to reward drivers according to access data; the reward server is connected to a heartbeat server; the heartbeat server is also connected to a third-party server for detecting the working status of the third-party server; the third-party server is used to provide the access data; the reward server includes:
[0028] A first sending module is used to send an inquiry request message to the heartbeat server; the inquiry request message is used to instruct the heartbeat server to monitor whether the third-party server is working normally;
[0029] A first receiving module, used for receiving a query response message sent by the heartbeat server, wherein the query response message includes a working status of a third-party server;
[0030] The first determination module is used to access pre-stored snapshot data of the third-party server to obtain access data if the working state of the third-party server is abnormal working, wherein the snapshot data is obtained by imaging the data in the third-party server.
[0031] Optionally, the first determination module is further configured to access snapshot data of the third-party server in a current state to obtain the access data when the reward server is still connected to the third-party server and the third-party server is in normal working state.
[0032] Optionally, the first sending module is further configured to send the access data to the third-party server, so that the third-party server updates currently stored snapshot data of the third-party server.
[0033] Optionally, the access data includes the driver's order volume and / or credit rating.
[0034] Optionally, the first determination module is further used to determine the driver's reward information according to the driver's order volume and / or credit rating;
[0035] The first sending module is further used to send the reward information to the terminal corresponding to the driver.
[0036] In a fourth aspect, the present application provides a heartbeat server, which is connected to a reward server and a third-party server respectively, and is used to detect the working status of the third-party server; the heartbeat server includes:
[0037] A second receiving module, used to receive an inquiry request message sent by the reward server;
[0038] A second determination module, used to determine the working status of the third-party server according to the query request message;
[0039] The second sending module is used to send an inquiry response message to the reward server, wherein the inquiry response message includes the working status of the third-party server, so that the reward server can access the pre-stored snapshot data of the third-party server to obtain access data when the working status of the third-party server is abnormal, and the snapshot data is obtained by imaging the data in the third-party server.
[0040] Optionally, the second determination module is specifically used to send a heartbeat request to the third-party server according to the inquiry request message; when a heartbeat response returned by the third-party server is received, determine that the working status of the third-party server is normal operation; when no heartbeat response returned by the third-party server is received within a preset time period, or an error response returned by the third-party server is received, determine that the working status of the third-party server is abnormal operation.
[0041] Optionally, the access data includes the driver's order volume and / or credit rating.
[0042] In a fifth aspect, the present application provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the data processing method described in the first aspect.
[0043] In a sixth aspect, the present application provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the data processing method described in the second aspect.
[0044] In a seventh aspect, the present application provides an electronic device, including:
[0045] Processor; and
[0046] A memory, configured to store executable instructions of the processor;
[0047] Wherein, the processor is configured to perform the data processing method described in the first aspect by executing the executable instructions.
[0048] In an eighth aspect, the present application provides an electronic device, including:
[0049] Processor; and
[0050] A memory, configured to store executable instructions of the processor;
[0051] Wherein, the processor is configured to execute the data processing method described in the second aspect by executing the executable instructions.
[0052] The data processing method and device provided by the present application sends an inquiry request message to the heartbeat server through the reward server, so that the heartbeat server can monitor whether the reward server is working normally in the current state. The heartbeat server then sends an inquiry response message carrying the working status of the third-party server to the reward server. In this way, the reward server can access the pre-stored snapshot data of the third-party server when the working status of the third-party server is abnormal. The snapshot data is obtained by imaging the data in the third-party server, thereby obtaining the access data, which solves the problem of poor stability of the existing reward server due to the high error frequency of the third-party server, realizes the timely and accurate acquisition of snapshot data, and facilitates the reward server to reward the driver based on the snapshot data, thereby improving the accuracy of the reward and thus improving the enthusiasm of the driver to accept the order. BRIEF DESCRIPTION OF THE DRAWINGS
[0053] In order to more clearly illustrate the technical solutions in the present application or the prior art, a brief introduction will be given below to the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0054] Figure 1 A schematic diagram of the structure of the data processing system provided for this application;
[0055] Figure 2 A signaling flow chart of the data processing method provided by this application;
[0056] Figure 3 A signaling flow chart of the data processing method provided by this application;
[0057] Figure 4 A flowchart of the data processing method provided in this application;
[0058] Figure 5 A schematic diagram of the structure of the reward server provided for this application;
[0059] Figure 6 A schematic diagram of the structure of the heartbeat server provided for this application;
[0060] Figure 7 A schematic diagram of the hardware structure of the electronic device provided in this application. DETAILED DESCRIPTION
[0061] In order to make the purpose, technical solutions and advantages of this application clearer, the technical solutions in this application will be clearly and completely described below in conjunction with the drawings in this application. Obviously, the described embodiments are part of the embodiments of this application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0062] Figure 1 A schematic diagram of the structure of the data processing system provided for this application, such as Figure 1 As shown, the data processing system includes: a reward server, a heartbeat server and one or more third-party servers. For the sake of convenience, this embodiment is described by taking one third-party server as an example.
[0063] The reward server is configured with rules for rewarding drivers who use the taxi-hailing software. The heartbeat server can monitor the working status of the third-party server in real time, at a fixed time, or by triggering. When the actual conditions meet the rules, the reward server can access the snapshot data of the third-party server in the corresponding state through the working status of the third-party server given by the heartbeat server, and obtain the access data, so that the reward server can reward the driver according to the access data.
[0064] The actual condition may be a trigger condition pre-set in the reward server, or a condition triggered by the driver, which is not limited in this embodiment.
[0065] In this embodiment, the taxi-hailing software refers to the application installed on the user end. In the reward server, relevant information of the driver corresponding to one or more taxi-hailing softwares can be stored, such as the driver's user information (such as the driver's ID number or mobile phone number), the driver's driver's license information, the license plate number information of the vehicle used by the driver, the model information of the vehicle, etc. In the snapshot data of the third-party server, the order volume, the driver's credit rating and other data corresponding to one or more taxi-hailing softwares can be stored, and the third-party server can also store historical snapshot data of the third-party server.
[0066] Furthermore, the reward server, heartbeat server and third-party server of this embodiment may adopt any existing operating system, such as Windows system, Android system, etc., which is not limited in this embodiment. Moreover, the reward server, heartbeat server and third-party server may be connected to each other through a wired network or a wireless network to realize operations such as short-distance or long-distance data transmission between the reward server, heartbeat server and third-party server.
[0067] Next, combine Figure 1 , through specific embodiments, the specific implementation process of the data processing method is described in detail. Figure 2 The signaling flow chart of the data processing method provided in this application is as follows: Figure 2 As shown, the data processing method of this embodiment may include:
[0068] S101. The reward server sends an inquiry request message to the heartbeat server. The inquiry request message is used to instruct the heartbeat server to monitor whether the third-party server is working normally.
[0069] S102: The heartbeat server determines the working status of the third-party server according to the query request message.
[0070] S103. The heartbeat server sends an inquiry response message to the reward server, where the inquiry response message includes the working status of the third-party server.
[0071] S104. When the working state of the third-party server is abnormal, the reward server accesses the pre-stored snapshot data of the third-party server to obtain access data, where the snapshot data is obtained by imaging the data in the third-party server.
[0072] Specifically, since the heartbeat server can monitor the working status of the third-party server in real time, timing or triggering, when the reward server needs to reward the driver, the reward server can first send an inquiry request information to the heartbeat server, and the inquiry request information can instruct the heartbeat server to monitor whether the third-party server is working normally.
[0073] Furthermore, the heartbeat server determines the working state of the third-party server in the current state according to the query request information. The heartbeat server can carry the working state of the third-party server in the query response message and send it to the reward server. In this way, when the working state of the third-party server is abnormal, the reward server cannot access the snapshot data of the third-party server in the current state.
[0074] Furthermore, since the reward server can use snapshot technology to image the data in the third-party server in advance to obtain the snapshot data of the third-party server, and use a third-party server, a heartbeat machine or an independent snapshot server and other storage devices to store the snapshot data of the third-party server, therefore, when the working status of the third-party server is abnormal, the reward server has stored the location information of the snapshot data of the third-party server in advance, so that it can access the corresponding location to call the pre-stored snapshot data of the third-party server, and determine the pre-stored snapshot data of the third-party server as the access data in the current state, so as to facilitate the timely and accurate execution of subsequent reward work, thereby avoiding the phenomenon that the reward server directly accesses the erroneous snapshot data in the third-party server that is in abnormal working state.
[0075] The specific implementation form of the access data is not limited in this embodiment. Optionally, the access data includes the driver's order volume and / or credit rating, and the access data can be stored in the reward server in the form of a table or list, and the reward server can periodically clear the access data to avoid occupying too much storage space.
[0076] In addition, the reward server can reward the driver based on the access data. Optionally, the data processing method of this embodiment may also include: the reward server determines the driver's reward information based on the driver's order volume and / or credit rating; the reward server sends the reward information to the terminal corresponding to the driver.
[0077] Specifically, since the reward server has the reward rules stored in advance, the reward server can determine the driver's reward information according to the driver's order volume and / or credit. Further, the reward server can send the reward information to the driver's corresponding terminal according to the reward information.
[0078] Among them, the reward information may include but is not limited to the reward amount, the number of additional orders, taxi coupons, etc.
[0079] The data processing method provided in this embodiment sends an inquiry request message to the heartbeat server through the reward server, so that the heartbeat server can monitor whether the reward server is working normally in the current state. The heartbeat server then sends an inquiry response message carrying the working status of the third-party server to the reward server. In this way, the reward server can access the pre-stored snapshot data of the third-party server when the working status of the third-party server is abnormal. The snapshot data is obtained by imaging the data in the third-party server, thereby obtaining the access data, which solves the problem of poor stability of the existing reward server due to the high error frequency of the third-party server, realizes the timely and accurate acquisition of snapshot data, and facilitates the reward server to reward the driver based on the snapshot data, thereby improving the accuracy of the reward and thus improving the enthusiasm of the driver to accept the order.
[0080] In the above Figure 2 Based on the embodiment, combined Figure 3 , the specific implementation process of the data processing method of this embodiment is described in detail.
[0081] Figure 3 The signaling flow chart of the data processing method provided in this application is as follows: Figure 3 As shown, the data processing method of this embodiment may include:
[0082] S201. The reward server sends an inquiry request message to the heartbeat server. The inquiry request message is used to instruct the heartbeat server to monitor whether the third-party server is working normally.
[0083] S202: The heartbeat server determines the working status of the third-party server according to the query request message.
[0084] S203. The heartbeat server sends a query response message to the reward server, where the query response message includes the working status of the third-party server.
[0085] Among them, S201, S202 and S203 are respectively Figure 2 The implementation methods of S101, S102 and S103 in the embodiment are similar, and will not be repeated here in this embodiment.
[0086] S204, the reward server determines whether the working status of the third-party server is abnormal. If yes, execute S2041, if no, execute S2042-S2043.
[0087] S2041. The reward server accesses pre-stored snapshot data of the third-party server to obtain access data, where the snapshot data is obtained by imaging the data in the third-party server.
[0088] Among them, S2041 and Figure 2The implementation of S104 in the embodiment is similar and will not be described in detail in this embodiment.
[0089] S2042. The reward server accesses the snapshot data of the third-party server in the current state to obtain access data.
[0090] Specifically, when the working status of the third-party server is normal, the reward server can access the third server and use snapshot technology to obtain the snapshot data of the third-party server in the current state in real time, so that the reward server can obtain the latest snapshot data in a timely and accurate manner, which is convenient for accurately determining the driver's reward information.
[0091] In addition, the reward server may also send access data to the third-party server, so that the third-party server updates the currently stored snapshot data of the third-party server.
[0092] Specifically, when the reward server obtains the snapshot data of the third-party server in the current state, it can send the snapshot data to the third-party server, so that the third-party server replaces the currently stored snapshot data, realizes the update process of the snapshot data, and ensures the real-time nature of the snapshot data stored in the third-party server. Therefore, even if the third-party server fails or has problems in the next moment, the next time the reward server accesses the snapshot data of the third-party server, the reward server can obtain more accurate snapshot data due to the timely update of the snapshot data, which facilitates the accurate determination of the driver's reward information and reduces the error rate of the reward.
[0093] In the above Figure 2 or Figure 3 Based on the embodiment, combined Figure 4 , a specific implementation process of the heartbeat server in S102 or S202 determining the working status of the third-party server according to the query request message is described in detail.
[0094] Figure 4 A flow chart of the data processing method provided in this application, such as Figure 4 As shown, the data processing method of this embodiment may include:
[0095] S301. The heartbeat server sends a heartbeat request to a third-party server according to the query request message.
[0096] S3021. If the heartbeat server receives a heartbeat response returned by the third-party server, it determines that the working status of the third-party server is normal.
[0097] S3022: If the heartbeat server does not receive a heartbeat response from the third-party server within a preset time period, or receives an error response from the third-party server, it is determined that the working state of the third-party server is abnormal.
[0098] Specifically, when the heartbeat server receives the inquiry request message, it can send a heartbeat request to the third-party server. When the heartbeat server receives a heartbeat response within a preset time, the heartbeat server can first determine whether the heartbeat response is a correct response. If so, the heartbeat server determines that the working state of the third-party server is normal operation; if not, the heartbeat server determines that the working state of the third-party server is abnormal operation. When the heartbeat server receives a heartbeat response within a preset time, the heartbeat server determines that the working state of the third-party server is abnormal operation.
[0099] Among them, the heartbeat request may carry specific information that only the third-party server can recognize, and the heartbeat response may carry specific information that only the heartbeat server can recognize. This embodiment does not limit the implementation method of the heartbeat request and the heartbeat response.
[0100] Figure 5 The structure diagram of the reward server provided for this application is as follows: Figure 5 As shown, the reward server 10 of this embodiment is used to reward drivers according to access data, and the reward server 10 is connected to the heartbeat server. The heartbeat server is also connected to a third-party server to detect the working status of the third-party server. The third-party server is used to provide access data. The reward server 10 includes:
[0101] The first sending module 11 is used to send an inquiry request message to the heartbeat server; the inquiry request message is used to instruct the heartbeat server to monitor whether the third-party server is working normally;
[0102] A first receiving module 12 is used to receive a query response message sent by the heartbeat server, wherein the query response message includes a working status of the third-party server;
[0103] The first determining module 13 is used to access pre-stored snapshot data of the third-party server to obtain access data when the reward server 10 is still connected to the third-party server and the working state of the third-party server is abnormal.
[0104] Optionally, the first determining module 13 is further configured to access snapshot data of the third-party server in a current state to obtain access data when the working state of the third-party server is normal operation, where the snapshot data is obtained by imaging the data in the third-party server.
[0105] The first sending module 11 is further used to send access data to the third-party server, so that the third-party server updates the currently stored snapshot data of the third-party server.
[0106] Optionally, the access data includes the driver's order volume and / or credit rating.
[0107] Optionally, the first determination module 13 is further used to determine the driver's reward information according to the driver's order volume and / or credit rating;
[0108] The first sending module 11 is also used to send reward information to the terminal corresponding to the driver.
[0109] The reward server provided in the embodiment of the present application can execute the above method embodiment. Its specific implementation principle and technical effects can be found in the above method embodiment, and this embodiment will not be repeated here.
[0110] In this application, the reward server can be divided into functional modules according to the above method examples. For example, each functional module can be divided according to each function, or two or more functions can be integrated into one processing module. The above integrated modules can be implemented in the form of hardware or in the form of software functional modules. It should be noted that the division of modules in the various embodiments of this application is schematic and is only a logical functional division. There may be other division methods in actual implementation.
[0111] Figure 6 The structural diagram of the heartbeat server provided for this application is as follows: Figure 6 As shown, the heartbeat server 20 of this embodiment is connected to the reward server and the third-party server respectively, and is used to detect the working status of the third-party server. The heartbeat server 20 includes:
[0112] The second receiving module 21 is used to receive the query request message sent by the reward server;
[0113] A second determining module 22, configured to determine the working status of the third-party server according to the query request message;
[0114] The second sending module 23 is used to send an inquiry response message to the reward server, where the inquiry response message includes the working status of the third-party server, so that when the working status of the third-party server is abnormal, the reward server accesses the pre-stored snapshot data of the third-party server to obtain the access data, where the snapshot data is obtained by imaging the data in the third-party server.
[0115] Optionally, the second determination module 22 is specifically used to send a heartbeat request to a third-party server based on an inquiry request message; when a heartbeat response returned by the third-party server is received, it is determined that the working status of the third-party server is normal operation; when no heartbeat response returned by the third-party server is received within a preset time period, or an error response returned by the third-party server is received, it is determined that the working status of the third-party server is abnormal operation.
[0116] Optionally, the access data includes the driver's order volume and / or credit rating.
[0117] The heartbeat server provided in the embodiment of the present application can execute the above method embodiment. Its specific implementation principle and technical effects can be found in the above method embodiment, and this embodiment will not be repeated here.
[0118] In the present application, the heartbeat server can be divided into functional modules according to the above method example. For example, each functional module can be divided corresponding to each function, or two or more functions can be integrated into one processing module. The above integrated module can be implemented in the form of hardware or in the form of software functional modules. It should be noted that the division of modules in each embodiment of the present application is schematic and is only a logical function division. There may be other division methods in actual implementation.
[0119] Figure 7 This is a schematic diagram of the hardware structure of the electronic device provided in this application. Figure 7 As shown, the electronic device 30 is used to implement the operation corresponding to the reward server or the heartbeat server in any of the above method embodiments. The electronic device 30 of this embodiment may include: a memory 31 and a processor 32;
[0120] A memory 31, used for storing computer programs;
[0121] The processor 32 is used to execute the computer program stored in the memory to implement the data processing method in the above embodiment. For details, please refer to the relevant description in the above method embodiment.
[0122] Optionally, the memory 31 may be independent or integrated with the processor 32 .
[0123] When the memory 31 is a device independent of the processor 32, the electronic device 30 may further include:
[0124] The bus 33 is used to connect the memory 31 and the processor 32 .
[0125] Optionally, this embodiment further includes: a communication interface 34, which can be connected to the processor 32 through the bus 33. The processor 32 can control the communication interface 33 to implement the above-mentioned receiving and sending functions of the electronic device 30.
[0126] The electronic device provided in this embodiment can be used to execute the above-mentioned data processing method, and its implementation method and technical effect are similar, which will not be described in detail in this embodiment.
[0127] The present application also provides a computer-readable storage medium, the computer-readable storage medium includes a computer program, and the computer program is used to implement the data processing method in the above embodiment.
[0128] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of modules is only a logical function division, and there may be other division methods in actual implementation, such as multiple modules can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or modules, which can be electrical, mechanical or other forms.
[0129] The modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0130] In addition, each functional module in each embodiment of the present application can be integrated into one processing unit, or each module can exist physically separately, or two or more modules can be integrated into one unit. The above-mentioned module-composed unit can be implemented in the form of hardware or in the form of hardware plus software functional units.
[0131] The above-mentioned integrated module implemented in the form of a software function module can be stored in a computer-readable storage medium. The above-mentioned software function module is stored in a storage medium, including a number of instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor (English: processor) to perform some steps of the methods of various embodiments of the present application.
[0132] It should be understood that the processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), etc. A general-purpose processor may be a microprocessor or any conventional processor. The steps of the method disclosed in the application may be directly implemented as being executed by a hardware processor, or may be implemented by a combination of hardware and software modules in the processor.
[0133] The memory may include a high-speed RAM memory, and may also include a non-volatile storage NVM, such as at least one disk memory, and may also be a USB flash drive, a mobile hard disk, a read-only memory, a magnetic disk or an optical disk, etc.
[0134] The bus may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, the bus in the drawings of the present application is not limited to only one bus or one type of bus.
[0135] The computer-readable storage medium may be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk. The storage medium may be any available medium that can be accessed by a general or special purpose computer.
[0136] Those skilled in the art can understand that all or part of the steps of implementing the above-mentioned method embodiments can be completed by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, the steps of the above-mentioned method embodiments are executed; and the aforementioned storage medium includes: ROM, RAM, disk or optical disk and other media that can store program codes.
[0137] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present application.
Claims
1. A data processing method, applicable to a taxi-hailing software, characterized in that: Applied to a reward server, the reward server is used to reward drivers according to the access data, the reward server stores relevant information of one or more drivers corresponding to the taxi-hailing software, the relevant information includes the driver's user information, the driver's driver's license information, the license plate number information of the vehicle used by the driver, and the model information of the vehicle; The reward server is connected to the heartbeat server; The heartbeat server is also connected to a third-party server to detect the working status of the third-party server; The reward server is connected to the third-party server; The third-party server is used to provide the access data; the method comprises: Sending a query request message to the heartbeat server; the query request message is used to instruct the heartbeat server to monitor whether the third-party server is working normally; Receiving a query response message sent by the heartbeat server, wherein the query response message includes a working status of the third-party server; If the working state of the third-party server is abnormal working state, access the pre-stored snapshot data of the third-party server to obtain access data, wherein the snapshot data is obtained by imaging the data in the third-party server, and the access data includes the order quantity and / or credit rating of the driver; Determining reward information for the driver based on the number of orders received and / or credit rating of the driver; The reward information is sent to a terminal corresponding to the driver.
2. The method according to claim 1, characterized in that The reward server is also connected to the third-party server; the method further comprises: If the working state of the third-party server is normal operation, the snapshot data of the third-party server in the current state is accessed to obtain the access data.
3. The method according to claim 2, characterized in that The method further comprises: The access data is sent to the third-party server, so that the third-party server updates the currently stored snapshot data of the third-party server.
4. A data processing method, applicable to a taxi-hailing software, characterized in that: Applied to a heartbeat server, the heartbeat server is connected to a reward server and a third-party server respectively, and is used to detect the working status of the third-party server; the method comprises: Receive a query request message sent by a reward server; Determining the working status of the third-party server according to the query request message; An inquiry response message is sent to the reward server, wherein the inquiry response message includes the working status of the third-party server, so that when the working status of the third-party server is abnormal, the reward server accesses the pre-stored snapshot data of the third-party server to obtain access data, wherein the snapshot data is obtained by imaging the data in the third-party server, and the access data includes the driver's order volume and / or credit rating, and the reward server is connected to the third-party server.
5. The method according to claim 4, characterized in that The determining the working status of the third-party server according to the query request message includes: Sending a heartbeat request to the third-party server according to the query request message; If a heartbeat response returned by the third-party server is received, it is determined that the working status of the third-party server is normal operation; If no heartbeat response returned by the third-party server is received within a preset time period, or an error response returned by the third-party server is received, it is determined that the working state of the third-party server is abnormal working.
6. A reward server, characterized in that: The reward server is used to reward the driver according to the access data. The reward server stores relevant information of the driver corresponding to one or more taxi-hailing apps, including the driver's user information, the driver's driver's license information, the license plate number information of the vehicle used by the driver, and the model information of the vehicle; The reward server is connected to the heartbeat server; The heartbeat server is also connected to a third-party server to detect the working status of the third-party server; The reward server is connected to the third-party server; The third-party server is used to provide the access data; The reward server comprises: A first sending module is used to send an inquiry request message to the heartbeat server; the inquiry request message is used to instruct the heartbeat server to monitor whether the third-party server is working normally; A first receiving module, used for receiving a query response message sent by the heartbeat server, wherein the query response message includes a working status of a third-party server; a first determination module, configured to access pre-stored snapshot data of the third-party server to obtain access data if the working state of the third-party server is abnormal working state, wherein the snapshot data is obtained by imaging the data in the third-party server, and the access data includes the order quantity and / or credit rating of the driver; The first determination module is further used to determine the driver's reward information according to the driver's order volume and / or credit rating; The sending module is also used to send the reward information to the terminal corresponding to the driver.
7. The reward server according to claim 6, characterized in that: The first determining module is further configured to access the snapshot data of the third-party server in the current state to obtain the access data when the reward server is still connected to the third-party server and the working state of the third-party server is normal.
8. The reward server according to claim 7, characterized in that: The first sending module is further configured to send the access data to the third-party server, so that the third-party server updates the currently stored snapshot data of the third-party server.
9. A heartbeat server, characterized in that: The heartbeat server is connected to the reward server and the third-party server respectively, and is used to detect the working status of the third-party server; The heartbeat server comprises: A second receiving module, used to receive an inquiry request message sent by the reward server; A second determining module, used to determine the working status of the third-party server according to the query request message; The second sending module is used to send an inquiry response message to the reward server, wherein the inquiry response message includes the working status of the third-party server, so that the reward server can access the pre-stored snapshot data of the third-party server when the working status of the third-party server is abnormal, and obtain access data. The snapshot data is obtained by imaging the data in the third-party server, and the access data includes the driver's order volume and / or credit rating. The reward server is connected to the third-party server.
10. The heartbeat server according to claim 9, characterized in that: The second determination module is specifically configured to send a heartbeat request to the third-party server according to the query request message; upon receiving a heartbeat response returned by the third-party server, determine that the working state of the third-party server is normal working; When no heartbeat response returned by the third-party server is received within a preset time period, or an error response returned by the third-party server is received, it is determined that the working state of the third-party server is abnormal working.
11. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, it implements the data processing method described in any one of claims 1 to 3, or when the computer program is executed by a processor, it implements the data processing method described in any one of claims 4 to 5.
12. An electronic device, characterized in that: include: processor; as well as A memory, configured to store executable instructions of the processor; The processor is configured to execute the data processing method according to any one of claims 1 to 3 by executing the executable instructions, or the processor is configured to execute the data processing method according to any one of claims 4 to 5 by executing the executable instructions.
